From c911f06a1f4016d29ccdc1d318f6991d36116faf Mon Sep 17 00:00:00 2001 From: Jonne Nauha Date: Sat, 26 Nov 2016 14:02:21 -0800 Subject: [PATCH] One more try at -n --- .travis.yml | 2 +- build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f86afc4..8bddda1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/build.sh b/build.sh index 59c519a..7f23246 100755 --- a/build.sh +++ b/build.sh @@ -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