From 0c737a944e3edef97bcf94ea5d35bedf0483795f Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Wed, 17 Jul 2019 17:48:02 +0800 Subject: [PATCH] revert(release): revert back master check --- release.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release.sh b/release.sh index c4bd1004..0e2a3e4c 100755 --- a/release.sh +++ b/release.sh @@ -71,11 +71,11 @@ function make_release_note { printf '\n%s\n%s\n%s\n%s\n' "# Release Note (\`$2\`)" "> Release time: $(date +'%Y-%m-%d %H:%M:%S')" "$(cat ./CHANGELOG.tmp)" "$(cat ./CHANGELOG.md)" > ./CHANGELOG.md } -#BRANCH=$(git rev-parse --abbrev-ref HEAD) -#if [[ "$BRANCH" != "master" ]]; then -# printf "You are not at master branch, exit\n"; -# exit 1; -#fi +BRANCH=$(git rev-parse --abbrev-ref HEAD) +if [[ "$BRANCH" != "master" ]]; then + printf "You are not at master branch, exit\n"; + exit 1; +fi #$(grep "$VER_TAG" $CLIENT_CODE | sed -n 's/^.*'\''\([^'\'']*\)'\''.*$/\1/p')