From a13fe8d9475b0875e5d478c4bd3b1c672e82a32e Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Wed, 18 Jan 2023 00:50:15 +0100 Subject: [PATCH] armbian-next: allow shortcut `EXT=` to the overly-long and plural `ENABLE_EXTENSIONS=` --- lib/extensions.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/extensions.sh b/lib/extensions.sh index f3d6045a7b..95884e46bf 100644 --- a/lib/extensions.sh +++ b/lib/extensions.sh @@ -47,11 +47,11 @@ call_extension_method() { # to avoid hard coding the list of hook-points (eg: user_config, image_tweaks_pre_customize, etc) we use # a marker in the function names, namely "__" (two underscores) to determine the hook point. initialize_extension_manager() { - # before starting, auto-add extensions specified (eg, on the command-line) via the ENABLE_EXTENSIONS env var. Do it only once. - [[ ${initialize_extension_manager_counter} -lt 1 ]] && [[ "${ENABLE_EXTENSIONS}" != "" ]] && { + # before starting, auto-add extensions specified (eg, on the command-line) via the ENABLE_EXTENSIONS or EXT env var. Do it only once. + [[ ${initialize_extension_manager_counter} -lt 1 ]] && [[ "${ENABLE_EXTENSIONS:-"${EXT}"}" != "" ]] && { local auto_extension - for auto_extension in $(echo "${ENABLE_EXTENSIONS}" | tr "," " "); do - ENABLE_EXTENSION_TRACE_HINT="ENABLE_EXTENSIONS -> " enable_extension "${auto_extension}" + for auto_extension in $(echo "${ENABLE_EXTENSIONS:-"${EXT}"}" | tr "," " "); do + ENABLE_EXTENSION_TRACE_HINT="ENABLE_EXTENSIONS/EXT -> " enable_extension "${auto_extension}" done }