From 6b8c89e32909db96d25f3c05a414bec831dc34fc Mon Sep 17 00:00:00 2001 From: Roberto Previdi Date: Fri, 20 Nov 2020 13:23:00 +0100 Subject: [PATCH] fix major or minor bumps when increasing the major or minor version whe need to move the less important numbers to zero --- update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.sh b/update.sh index 036763c..0dbcbef 100644 --- a/update.sh +++ b/update.sh @@ -31,9 +31,12 @@ VNUM3=${CURRENT_VERSION_PARTS[2]} if [[ $VERSION == 'major' ]] then VNUM1=$((VNUM1+1)) + VNUM2=0 + VNUM3=0 elif [[ $VERSION == 'minor' ]] then VNUM2=$((VNUM2+1)) + VNUM3=0 elif [[ $VERSION == 'patch' ]] then VNUM3=$((VNUM3+1))