From: Thanh Ha Date: Thu, 13 Aug 2020 01:22:20 +0000 (-0400) Subject: Revert "Fix formatting in script" X-Git-Tag: v0.56.2^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=fa8e5cf8e42ef69b975ec1eab827f06425eab9ea;p=releng%2Fglobal-jjb.git Revert "Fix formatting in script" This reverts commit 8ac864b735534ac4c8646aa9141dac1c51147912. Change-Id: Ibd0d79eb81d486f17d27de78c9d5c64162e8c55e Signed-off-by: Thanh Ha --- 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 \