mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 08:25:55 +08:00
Fix util script to work when TRAVIS_BRANCH is unset.
This commit is contained in:
parent
c2aa7e7b3b
commit
44455c8cb4
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user