From fa8e5cf8e42ef69b975ec1eab827f06425eab9ea Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Wed, 12 Aug 2020 21:22:20 -0400 Subject: [PATCH] Revert "Fix formatting in script" This reverts commit 8ac864b735534ac4c8646aa9141dac1c51147912. Change-Id: Ibd0d79eb81d486f17d27de78c9d5c64162e8c55e Signed-off-by: Thanh Ha --- shell/openstack-protect-in-use-images.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 \ -- 2.16.6