Add missing closing bracket 24/15824/3
authorThanh Ha <zxiiro@gmail.com>
Thu, 6 Jun 2019 23:45:23 +0000 (09:45 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 6 Jun 2019 23:45:23 +0000 (09:45 +1000)
Patch I45070e0b364136b28e4130aed3972603e8c2e3c1 caused a regression
which broke the image protection code due to missing square bracket.

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I6ceed9f7243425e43748824036e2ebd431906eec
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
shell/openstack-protect-in-use-images.sh

index 9152348..08727f6 100644 (file)
@@ -27,7 +27,7 @@ conf_images=("$(grep -r IMAGE_NAME --include \*.cfg jenkins-config \
 yaml_images=("$(grep -r 'ZZCI - ' --include \*.yaml jjb \
                | awk -F": " '{print $3}' | sed "s:'::;s:'$::;/^$/d" \
                | sort -u)") || true
-readarray -t images <<< "$(for i in "${conf_images[@}" "${yaml_images[@]}"; do \
+readarray -t images <<< "$(for i in "${conf_images[@]}" "${yaml_images[@]}"; do \
                            echo "$i"; done | sort)"
 
 for image in "${images[@]}"; do