garbage_collect: no quotes for subshell exec assignments

Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
Thilo Fromm 2024-02-14 14:58:02 +01:00 committed by GitHub
parent 88857b496a
commit bd3d4c19e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ function _garbage_collect_releases_impl() {
source ci-automation/ci_automation_common.sh source ci-automation/ci_automation_common.sh
local sshcmd="$(gen_sshcmd)" local sshcmd="$(gen_sshcmd)"
local keep="$( local keep=$(
# For some reasons this is set to the empty string in some environments and it makes gawk # For some reasons this is set to the empty string in some environments and it makes gawk
# behave like POSIX awk (i.e. no 'gensub'). # behave like POSIX awk (i.e. no 'gensub').
unset POSIXLY_CORRECT unset POSIXLY_CORRECT
@ -67,7 +67,7 @@ function _garbage_collect_releases_impl() {
chan_count["lts"][major] = chan_count["lts"][major] + 1 chan_count["lts"][major] = chan_count["lts"][major] + 1
} }
} ' } '
)" )
mapfile -t keep_versions <<<"${keep}" mapfile -t keep_versions <<<"${keep}"