Skip to content
View in the app

A better way to browse. Learn more.

Learn more

[Armbian build PR] - cli: Fix DEFAULT_OVERLAYS array

Featured Replies

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

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.