mirror of https://github.com/polybar/polybar.git
fix(bump.sh): Support multi digit patch versions
This commit is contained in:
parent
c1be785be7
commit
5692e6d419
5
bump.sh
5
bump.sh
|
@ -10,8 +10,9 @@ fi
|
|||
git tag "$@" || exit 1
|
||||
|
||||
# shellcheck disable=SC2016
|
||||
tag_prev=$(git tag -l | tail -2 | head -1)
|
||||
tag_curr=$(git tag -l | tail -1)
|
||||
tag_curr=$(git describe --tags --abbrev=0)
|
||||
tag_curr_patch="${tag_curr##*.}"
|
||||
tag_prev="${tag_curr%.*}.$((tag_curr_patch-1))"
|
||||
|
||||
./version.sh "$tag_curr"
|
||||
|
||||
|
|
Loading…
Reference in New Issue