X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-protect-in-use-images.sh;h=a422cd8786cfd278e9c61968294f8f1e179fde3e;hb=a64dad11c1b5f237ec2fada98e6ab9e9310c150e;hp=610a8927bac1543cdaf082d90119682d9b18262d;hpb=8ac864b735534ac4c8646aa9141dac1c51147912;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-protect-in-use-images.sh b/shell/openstack-protect-in-use-images.sh index 610a8927..a422cd87 100644 --- a/shell/openstack-protect-in-use-images.sh +++ b/shell/openstack-protect-in-use-images.sh @@ -24,8 +24,7 @@ set -eu -o pipefail declare -a images images+=("$(grep -r IMAGE_NAME --include \*.cfg jenkins-config \ | awk -F'=' '{print $2}' | sort -u)") - -# Not all projects have images in YAML files and grep returns non-zero on 0 results +set +o pipefail # Not all projects have images in YAML files and grep returns non-zero on 0 results # Ignore SC2179 since we do not want () to result in an empty array item. #shellcheck disable=SC2179 images+=("$(grep -r 'ZZCI - ' --include \*.yaml jjb \