File tree 2 files changed +0
-14
lines changed
2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 11
11
set -o errexit
12
12
set -o pipefail
13
13
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
-
21
14
if [ -n " $( git status --short) " ]; then
22
15
echo " Error: There are untracked/modified changes, commit or discard them before the release."
23
16
exit 1
Original file line number Diff line number Diff line change 11
11
set -o errexit
12
12
set -o pipefail
13
13
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
-
21
14
if [ -n " $( git status --short) " ]; then
22
15
echo " Error: There are untracked/modified changes, commit or discard them before the release."
23
16
exit 1
You can’t perform that action at this time.
0 commit comments