From b7aa965fc88bfdb0360cdefb5d756ad7a5ccad84 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sun, 2 Apr 2017 08:43:05 -0500 Subject: [PATCH] Gee thanks travis for not just unsetting variables if they have nonsense data in them --- package/common/util.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/common/util.sh b/package/common/util.sh index e27151d83..d8d515925 100644 --- a/package/common/util.sh +++ b/package/common/util.sh @@ -43,8 +43,10 @@ function set_branch () current_branch=$APPVEYOR_REPO_BRANCH fi if [ ! -z ${TRAVIS_BRANCH} ]; then - echo "Setting to TRAVIS_BRANCH" - current_branch=$TRAVIS_BRANCH + if [ "${TRAVIS_BRANCH}" != "false" ]; then + echo "Setting to TRAVIS_BRANCH" + current_branch=$TRAVIS_BRANCH + fi fi fi