Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeChenL authored Jan 8, 2024
1 parent ee2eb26 commit 819f069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/usr/lib/rsetup/cli/u-boot-menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ check_overlay_conflict_init() {
check_overlay_conflict() {
local name resources res i
mapfile -t resources < <(parse_dtbo "exclusive" "$1")
mapfile -t name < <(parse_dtbo "--default-value" "file" "title" "$1")
mapfile -t name < <(parse_dtbo --default-value "file" "title" "$1")

for res in "${resources[@]}"
do
Expand Down
4 changes: 2 additions & 2 deletions src/usr/lib/rsetup/tui/overlay/overlay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ __overlay_show() {
# Bash doesn support IFS=$'\0'
# Use array to emulate this
local items=()
mapfile -t items < <(parse_dtbo "--show-overlays" "title" "${dtbos[@]}")
mapfile -t items < <(parse_dtbo --show-overlays "title" "${dtbos[@]}")
while (( ${#items[@]} >= 3 ))
do
checklist_add "${items[0]/$'\n'}" "${items[1]/$'\n'}" "${items[2]/$'\n'}"
Expand Down Expand Up @@ -116,7 +116,7 @@ __overlay_validate() {
fi

local title package
mapfile -t title < <(parse_dtbo "--default-value" "file" "title" "$U_BOOT_FDT_OVERLAYS_DIR/$item"*)
mapfile -t title < <(parse_dtbo --default-value "file" "title" "$U_BOOT_FDT_OVERLAYS_DIR/$item"*)
mapfile -t package < <(parse_dtbo "package" "$U_BOOT_FDT_OVERLAYS_DIR/$item"*)
if [[ "${package[0]}" != "null" ]]
then
Expand Down

0 comments on commit 819f069

Please sign in to comment.