Skip to content

Commit

Permalink
One more try at -n
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnenauha committed Nov 26, 2016
1 parent c280a3c commit c911f06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ script:
- sudo $GOROOT/bin/go test -v ./...

after_success:
- if [ -n $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./build.sh $TRAVIS_TAG; fi
- if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./build.sh $TRAVIS_TAG; fi

deploy:
provider: releases
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo -e "\nVERSION=$VERSION"
echo "VERSION_HASH=$VERSION_HASH"
echo "VERSION_DATE=$VERSION_DATE"

if [ -z $VERSION ]; then
if [ -z "$VERSION" ]; then
echo "Error: First argument must be release version"
exit 1
fi
Expand Down

0 comments on commit c911f06

Please sign in to comment.