X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-protect-in-use-images.sh;h=468ea0d8f2256f2f9215726fe1000c16fba11666;hb=eafdcafcbe25dbad05e5117aca20bf6ea048ac44;hp=e2299060e678aa6b6cae766b50b85ff8753cf1a5;hpb=d56275b88a022a810b9a39f4c7e142c8c8d626bd;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-protect-in-use-images.sh b/shell/openstack-protect-in-use-images.sh index e2299060..468ea0d8 100644 --- a/shell/openstack-protect-in-use-images.sh +++ b/shell/openstack-protect-in-use-images.sh @@ -23,16 +23,16 @@ images=() while read -r -d $'\n' ; do images+=("$REPLY") done < <(grep -r IMAGE_NAME --include \*.cfg jenkins-config \ - | awk -F'=' '{print $2}' \ - | sort -u) + | awk -F'=' '{print $2}' \ + | sort -u) jjbimages=() while read -r -d $'\n' ; do jjbimages+=("$REPLY") done < <(grep -r 'ZZCI - ' --include \*.yaml jjb \ - | awk -F": " '{print $3}' \ - | sed -e "s:'::;s:'$::;/^$/d" -e 's/^"//' -e 's/"$//' \ - | sort -u) + | awk -F": " '{print $3}' \ + | sed -e "s:'::;s:'$::;/^$/d" -e 's/^"//' -e 's/"$//' \ + | sort -u) if ! [[ ${#images[@]} -eq 0 ]]; then echo "INFO: There are images to protect defined in jenkins-config."