From 54f487d7062e8c66daaad604fe3f0d6068792dde Mon Sep 17 00:00:00 2001 From: sentriz Date: Thu, 26 Mar 2020 01:48:36 +0000 Subject: [PATCH] check for master in do_bump_version --- _do_bump_version | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_do_bump_version b/_do_bump_version index 56486ca..8fce628 100755 --- a/_do_bump_version +++ b/_do_bump_version @@ -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