Gee thanks travis for not just unsetting variables if they have nonsense data in them

This commit is contained in:
Joseph Lenox 2017-04-02 08:43:05 -05:00
parent cc45494a2d
commit b7aa965fc8

View File

@ -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