Skip to content

Commit

Permalink
Check for existing tag when bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
casch-at committed Dec 11, 2019
1 parent 1c142e4 commit 625dcdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ MINOR=$(echo $1 | awk -F. '{print $2}')
PROTOCOL=$(echo $1 | awk -F. '{print $3}')
TAG="v${MAJOR}.${MINOR}"

if git rev-parse $TAG >/dev/null 2>&1; then
echo "$TAG exists"
exit 1
fi

JOBS=$(getconf _NPROCESSORS_ONLN)

if [ "$(uname)" == "Darwin" ]; then
Expand Down

0 comments on commit 625dcdf

Please sign in to comment.