mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 17:12:00 +08:00
properly check appveyor repo branch or set to unknown
This commit is contained in:
parent
c3e6b49d02
commit
ca0000d7b2
@ -18,6 +18,8 @@ else
|
|||||||
if [ -z ${GIT_BRANCH+x} ]; then
|
if [ -z ${GIT_BRANCH+x} ]; then
|
||||||
echo "Setting to APPVEYOR_REPO_BRANCH"
|
echo "Setting to APPVEYOR_REPO_BRANCH"
|
||||||
current_branch=$APPVEYOR_REPO_BRANCH
|
current_branch=$APPVEYOR_REPO_BRANCH
|
||||||
|
elif [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||||
|
current_branch="unknown"
|
||||||
else
|
else
|
||||||
echo "Setting to GIT_BRANCH"
|
echo "Setting to GIT_BRANCH"
|
||||||
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
||||||
|
@ -28,15 +28,14 @@ else
|
|||||||
if [ -z ${GIT_BRANCH+x} ]; then
|
if [ -z ${GIT_BRANCH+x} ]; then
|
||||||
echo "Setting to APPVEYOR_REPO_BRANCH"
|
echo "Setting to APPVEYOR_REPO_BRANCH"
|
||||||
current_branch=$APPVEYOR_REPO_BRANCH
|
current_branch=$APPVEYOR_REPO_BRANCH
|
||||||
|
elif [ -z ${APPVEYOR_REPO_BRANCH+x} ]; then
|
||||||
|
current_branch="unknown"
|
||||||
else
|
else
|
||||||
echo "Setting to GIT_BRANCH"
|
echo "Setting to GIT_BRANCH"
|
||||||
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
current_branch=$(echo $GIT_BRANCH | cut -d / -f 2)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z ${current_branch+x} ]; then
|
|
||||||
current_branch="unknown"
|
|
||||||
fi
|
|
||||||
# If we're on a branch, add the branch name to the app name.
|
# If we're on a branch, add the branch name to the app name.
|
||||||
if [ "$current_branch" == "master" ]; then
|
if [ "$current_branch" == "master" ]; then
|
||||||
appname=Slic3r
|
appname=Slic3r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user