Skip to content

Commit

Permalink
ignore curl exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
kichalla committed Oct 13, 2019
1 parent 1dcfd69 commit 6bd4ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsts/scripts/createReleaseTag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ elif [[ "$sourceBranch" == patch/* ]]; then
fullPatchTagName="$patchedTagName-patch$patchNumber"
releaseUrl="$baseReleaseTagUrl/$fullPatchTagName"

curl -I "$releaseUrl" 1> /tmp/createReleaseTag.txt 2> /dev/null
grep "HTTP/1.1 404 Not Found" /tmp/createReleaseTag.txt &> /dev/null
curl -I "$releaseUrl" 1> /tmp/createReleaseTag.txt 2> /dev/null || true
grep "HTTP/1.1 404 Not Found" /tmp/createReleaseTag.txt &> /dev/null || true
exitCode=$?
rm -f /tmp/createReleaseTag.txt
if [ $exitCode -eq 0 ]; then
Expand Down

0 comments on commit 6bd4ff1

Please sign in to comment.