mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 05:11:59 +08:00
Reversed logic for branch detection
This commit is contained in:
parent
ca0000d7b2
commit
439daf15d3
@ -15,15 +15,15 @@ fi
|
||||
if [ -z ${GIT_BRANCH+x} ] && [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||
current_branch=$(git symbolic-ref HEAD | sed 's!refs\/heads\/!!')
|
||||
else
|
||||
if [ -z ${GIT_BRANCH+x} ]; then
|
||||
echo "Setting to APPVEYOR_REPO_BRANCH"
|
||||
current_branch=$APPVEYOR_REPO_BRANCH
|
||||
elif [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||
current_branch="unknown"
|
||||
else
|
||||
if [ ! -z ${GIT_BRANCH+x} ]; then
|
||||
echo "Setting to GIT_BRANCH"
|
||||
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
||||
fi
|
||||
if [ ! -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||
echo "Setting to APPVEYOR_REPO_BRANCH"
|
||||
current_branch=$APPVEYOR_REPO_BRANCH
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z ${current_branch+x} ]; then
|
||||
|
@ -25,15 +25,15 @@ fi
|
||||
if [ -z ${GIT_BRANCH+x} ] && [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||
current_branch=$(git symbolic-ref HEAD | sed 's!refs\/heads\/!!')
|
||||
else
|
||||
if [ -z ${GIT_BRANCH+x} ]; then
|
||||
echo "Setting to APPVEYOR_REPO_BRANCH"
|
||||
current_branch=$APPVEYOR_REPO_BRANCH
|
||||
elif [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||
current_branch="unknown"
|
||||
else
|
||||
if [ ! -z ${GIT_BRANCH+x} ]; then
|
||||
echo "Setting to GIT_BRANCH"
|
||||
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
||||
fi
|
||||
if [ ! -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||
echo "Setting to APPVEYOR_REPO_BRANCH"
|
||||
current_branch=$APPVEYOR_REPO_BRANCH
|
||||
fi
|
||||
fi
|
||||
|
||||
# If we're on a branch, add the branch name to the app name.
|
||||
|
Loading…
x
Reference in New Issue
Block a user