Skip to content

Commit

Permalink
Make bash script more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
mrniket committed Oct 10, 2018
1 parent c2f7c3d commit 2a1f9a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ jobs:
- stage: release
script:
- >
if [ $TRAVIS_PULL_REQUEST_BRANCH -ne "" ]
if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]
then
BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
else
BRANCH=$TRAVIS_BRANCH
BRANCH="$TRAVIS_BRANCH"
fi
if [ $BRANCH -eq "versions" ]
if [ "$BRANCH" = "versions" ]
then
git tag "$(cat version.txt).b$TRAVIS_BUILD_NUMBER";
git tag "$(cat version.txt).b$TRAVIS_BUILD_NUMBER";
else
git tag "$(cat version.txt)"
git tag "$(cat version.txt)"
fi
deploy:
- provider: releases
Expand Down

0 comments on commit 2a1f9a9

Please sign in to comment.