Skip to content

Commit ffc5c3f

Browse files
committed
Fix: On version-number bump, reset all version numbers to the right
1 parent 73eb87b commit ffc5c3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tag-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ then
2727
vMajorNew=$vMajor
2828
vMinorNew=$vMinor
2929
vPatchNew=$vPatch
30-
if [[ $1 == major ]]; then vMajorNew=$(( $vMajor + 1 )); fi
31-
if [[ $1 == minor ]]; then vMinorNew=$(( $vMinor + 1 )); fi
30+
if [[ $1 == major ]]; then vMajorNew=$(( $vMajor + 1 )); vMinorNew=0; vPatchNew=0; fi
31+
if [[ $1 == minor ]]; then vMinorNew=$(( $vMinor + 1 )); vPatchNew=0; fi
3232
if [[ $1 == patch ]]; then vPatchNew=$(( $vPatch + 1 )); fi
3333
newVersion=$vMajorNew.$vMinorNew.$vPatchNew
3434
echo "Bumping version from ${vMajor}.${vMinor}.${vPatch} to ${newVersion}"

0 commit comments

Comments
 (0)