fix(quickget): make editions parsing shellcheck SC2207 compliant

https://www.shellcheck.net/wiki/SC2207
This commit is contained in:
Martin Wimpress 2024-05-07 11:23:47 +01:00 committed by Martin Wimpress
parent e52ba1fc60
commit 7cfdfd0cec
1 changed files with 2 additions and 1 deletions

View File

@ -3532,7 +3532,8 @@ if [ -n "${2}" ]; then
# If the OS has an editions_() function, use it.
if [[ $(type -t "editions_${OS}") == function ]]; then
validate_release "releases_${OS}"
EDITIONS=($(editions_${OS}))
EDITIONS=("$(editions_${OS})")
# Default to the first edition if none is specified.
EDITION=${EDITIONS[0]}
if [ -n "${3}" ]; then
EDITION="${3}"