Jump to content

[Armbian build PR] - cli: Fix DEFAULT_OVERLAYS array


RSS Bot

Recommended Posts

Description

Shellcheck errors/warnings were:

In lib/functions/rootfs/distro-agnostic.sh line 155:
                        display_alert "Adding to extlinux.conf" "fdtoverlays=${DEFAULT_OVERLAYS[@]}" "debug"
                                                                             ^--------------------^ SC2145 (error): Argument mixes string and array. Use * or separate argument.

In lib/functions/rootfs/distro-agnostic.sh line 156:
                        echo "  fdtoverlays ${DEFAULT_OVERLAYS[@]}" >> "$SDCARD/boot/extlinux/extlinux.conf"
                                            ^--------------------^ SC2145 (error): Argument mixes string and array. Use * or separate argument.

In lib/functions/rootfs/distro-agnostic.sh line 193:
                if [[ -n $DEFAULT_OVERLAYS && -f "${SDCARD}"/boot/armbianEnv.txt ]]; then
                         ^---------------^ SC2128 (warning): Expanding an array without an index only gives the first element.

Fixes https://github.com/armbian/build/pull/6744

How it was tested

View the full article

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines