From: Thanh Ha Date: Thu, 6 Jun 2019 23:45:23 +0000 (+1000) Subject: Add missing closing bracket X-Git-Tag: v0.38.3~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F15824%2F3;p=releng%2Fglobal-jjb.git Add missing closing bracket Patch I45070e0b364136b28e4130aed3972603e8c2e3c1 caused a regression which broke the image protection code due to missing square bracket. Signed-off-by: Thanh Ha Change-Id: I6ceed9f7243425e43748824036e2ebd431906eec Signed-off-by: Anil Belur --- diff --git a/shell/openstack-protect-in-use-images.sh b/shell/openstack-protect-in-use-images.sh index 9152348e..08727f61 100644 --- a/shell/openstack-protect-in-use-images.sh +++ b/shell/openstack-protect-in-use-images.sh @@ -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