Skip to content

Commit

Permalink
cli: Fix DEFAULT_OVERLAYS array
Browse files Browse the repository at this point in the history
Shellcheck error was:
SC2145 (error): Argument mixes string and array. Use * or separate argument.
  • Loading branch information
ColorfulRhino committed Jun 14, 2024
1 parent 5ea4a2c commit 6b1a945
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/functions/rootfs/distro-agnostic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ function install_distribution_agnostic() {
DEFAULT_OVERLAYS=("${DEFAULT_OVERLAYS[@]/%/".dtbo"}")
DEFAULT_OVERLAYS=("${DEFAULT_OVERLAYS[@]/#/"${bootpart_prefix}dtb/${BOOT_FDT_FILE%%/*}/overlay/${OVERLAY_PREFIX}-"}")

display_alert "Adding to extlinux.conf" "fdtoverlays=${DEFAULT_OVERLAYS[@]}" "debug"
echo " fdtoverlays ${DEFAULT_OVERLAYS[@]}" >> "$SDCARD/boot/extlinux/extlinux.conf"
display_alert "Adding to extlinux.conf" "fdtoverlays=${DEFAULT_OVERLAYS[*]}" "debug"
echo " fdtoverlays ${DEFAULT_OVERLAYS[*]}" >> "$SDCARD/boot/extlinux/extlinux.conf"
fi

else # ... not extlinux ...

if [[ -n "${BOOTSCRIPT}" ]]; then # @TODO: && "${BOOTCONFIG}" != "none"
Expand Down

0 comments on commit 6b1a945

Please sign in to comment.