summaryrefslogtreecommitdiff
path: root/tcwg-update-llvmbot-containers.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-07-04 11:00:21 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-07-04 11:02:28 +0000
commit6a81bd343b06a6632d8c9f82c7995f0bd6d818ee (patch)
tree1664365351d6bc621af121e4ae9ccdd338eaaf74 /tcwg-update-llvmbot-containers.sh
parent26c8fcdd227d90ef5565d504f9965ad95291685e (diff)
tcwg-update-llvmbot-containers.sh: Fix undefined array error
Change-Id: I94166c3583bcb15981c0c42894b3f1c3aa7d1977
Diffstat (limited to 'tcwg-update-llvmbot-containers.sh')
-rwxr-xr-xtcwg-update-llvmbot-containers.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcwg-update-llvmbot-containers.sh b/tcwg-update-llvmbot-containers.sh
index 45b47421..580ad9c2 100755
--- a/tcwg-update-llvmbot-containers.sh
+++ b/tcwg-update-llvmbot-containers.sh
@@ -14,7 +14,6 @@ verbose="${verbose-true}"
if $verbose; then set -x; fi
-bots=()
case "$NODE_NAME:$master" in
tcwg-llvmbot-d05-01:normal)
bot_prefix=linaro-armv8-01-
@@ -49,7 +48,7 @@ case "$NODE_NAME:$master" in
;;
esac
-for bot in "${bots[@]}"; do
+for bot in "${bots[@]+${bots[@]}}"; do
case "$bot" in
aarch64-*) arch="arm64" ;;
arm-*|linaro-tk1-*) arch="armhf" ;;