check for master in do_bump_version

This commit is contained in:
sentriz
2020-03-26 01:48:36 +00:00
parent 8133665318
commit 54f487d706

View File

@@ -9,6 +9,10 @@ if [[ -n "$(git status --porcelain)" ]]; then
echo "working directory is dirty" >&2
exit 1
fi
if [[ "$(git branch --show-current)" != 'master' ]]; then
echo "not on the master branch" >&2
exit 1
fi
# get the current verison from last git tag into array and
# inc the provided part