Skip to content

Commit

Permalink
Merge pull request #1796 from aledbf/fix-grep-travis
Browse files Browse the repository at this point in the history
Fix grep in travis-ci to match the version as a word [ci skip]
  • Loading branch information
aledbf authored Dec 4, 2017
2 parents 17e6f53 + 59ab85f commit 6816630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -wq "$TAG" ; then
if echo "$IMAGES" | grep -q -P "(^|\s)$TAG(?=\s|$)" ; then
return 0
fi

Expand Down

0 comments on commit 6816630

Please sign in to comment.