File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 1111set -o errexit
1212set -o pipefail
1313
14- CURRENT_BRANCH=$( git rev-parse --abbrev-ref HEAD)
15-
16- if [ -z " ${CURRENT_BRANCH} " ] || [ " ${CURRENT_BRANCH} " != " master" ]; then
17- echo " Error: The current branch is '${CURRENT_BRANCH} ', switch to 'master' to do the release."
18- exit 1
19- fi
20-
2114if [ -n " $( git status --short) " ]; then
2215 echo " Error: There are untracked/modified changes, commit or discard them before the release."
2316 exit 1
Original file line number Diff line number Diff line change 1111set -o errexit
1212set -o pipefail
1313
14- CURRENT_BRANCH=$( git rev-parse --abbrev-ref HEAD)
15-
16- if [ -z " ${CURRENT_BRANCH} " ] || [ " ${CURRENT_BRANCH} " != " master" ]; then
17- echo " Error: The current branch is '${CURRENT_BRANCH} ', switch to 'master' to do the release."
18- exit 1
19- fi
20-
2114if [ -n " $( git status --short) " ]; then
2215 echo " Error: There are untracked/modified changes, commit or discard them before the release."
2316 exit 1
You can’t perform that action at this time.
0 commit comments