X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-protect-in-use-images.sh;h=08727f61cd0eb8ad62a272894afd180a2f0ef34f;hb=2a10c83b2d506008cc6c01c134515fb6328e1f3a;hp=9152348e270d5c4b940cc02009b4e615d3240667;hpb=2f22e7fa9fc24ac6c4cbca8eac2af7efc298f304;p=releng%2Fglobal-jjb.git 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