From 95c8dba35b02432e6163cc3b9cca0561271d5c4c Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 7 Jun 2019 09:45:23 +1000 Subject: [PATCH] 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 --- shell/openstack-protect-in-use-images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6