mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-21 21:51:57 +02:00
ci-automation: Fix potential use of unbound variable error
`local -a stuff` does not make `stuff` a bound array variable, so checking length of the array will trigger an error about unbound variable. Fortunately, `local stuff=()` does the trick.
This commit is contained in:
parent
bf1bc21498
commit
8c3d7b977b
@ -369,7 +369,7 @@ function run_kola_tests_on_instances() {
|
||||
fi
|
||||
done
|
||||
|
||||
local -a main_tests
|
||||
local main_tests=()
|
||||
|
||||
filter_out_prefixed_tests main_tests "${@}"
|
||||
if [[ "${#main_tests[@]}" -gt 0 ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user