diff --git a/.travis/common.sh b/.travis/common.sh index 8c658e39a5..05d1b3c81f 100755 --- a/.travis/common.sh +++ b/.travis/common.sh @@ -82,7 +82,7 @@ fi function docker_tag_exists() { TAG=${2//\"/} IMAGES=$(curl -s -H "Authorization: Bearer ${QUAY_PASSWORD}" https://quay.io/api/v1/repository/$1-$3/image/ | jq '.images | sort_by(.sort_index) | .[] .tags | select(.[] !=null) | .[0]' | sed s/\"//g) - if echo "$IMAGES" | grep -q "$TAG" ; then + if echo "$IMAGES" | grep -wq "$TAG" ; then return 0 fi