mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
garbage_collect: no quotes for subshell exec assignments
Co-authored-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
88857b496a
commit
bd3d4c19e2
@ -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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user