fix(bump.sh): Support multi digit patch versions

This commit is contained in:
Michael Carlberg 2016-10-29 19:49:00 +02:00
parent c1be785be7
commit 5692e6d419
1 changed files with 3 additions and 2 deletions

View File

@ -10,8 +10,9 @@ fi
git tag "$@" || exit 1 git tag "$@" || exit 1
# shellcheck disable=SC2016 # shellcheck disable=SC2016
tag_prev=$(git tag -l | tail -2 | head -1) tag_curr=$(git describe --tags --abbrev=0)
tag_curr=$(git tag -l | tail -1) tag_curr_patch="${tag_curr##*.}"
tag_prev="${tag_curr%.*}.$((tag_curr_patch-1))"
./version.sh "$tag_curr" ./version.sh "$tag_curr"