From 44455c8cb4f9716144ed43d85068c644eb5cd337 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Thu, 5 Dec 2019 20:55:24 -0600 Subject: [PATCH] Fix util script to work when TRAVIS_BRANCH is unset. --- package/common/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/common/util.sh b/package/common/util.sh index d7e7dfb20..dc09122b0 100755 --- a/package/common/util.sh +++ b/package/common/util.sh @@ -46,7 +46,7 @@ fi function set_branch () { echo "Setting current_branch" - if [ -z ${TRAVIS_BRANCH} ] && [ -z ${GIT_BRANCH+x} ] && [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then + if [ -z ${TRAVIS_BRANCH+x} ] && [ -z ${GIT_BRANCH+x} ] && [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then current_branch=$(git symbolic-ref HEAD | sed 's!refs\/heads\/!!') else current_branch="unknown"