Skip to content

Commit 80b00b6

Browse files
authored
Merge pull request #5 from AlexAtkinson/fix/counting-logic
Fix patch counting logic
2 parents bf3df0b + 1cbf2bd commit 80b00b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/detectNewVersion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ elif [[ -n $count_fix || -n $count_bugfix || -n $count_hotfix || -n $count_ops ]
225225
newVersionMajor=$lastVersionMajor
226226
newVersionMinor=$lastVersionMinor
227227
[[ -n $count_fix ]] && newVersionPatch=$((lastVersionPatch + count_fix))
228-
[[ -n $count_bugfix ]] && newVersionPatch=$((lastVersionPatch + count_bugfix))
228+
[[ -n $count_bugfix ]] && newVersionPatch=$((newVersionPatch + count_bugfix))
229229
[[ -n $count_hotfix ]] && newVersionPatch=$((newVersionPatch + count_hotfix))
230-
[[ -n $count_ops ]] && newVersionPatch=$((lastVersionPatch + count_ops))
230+
[[ -n $count_ops ]] && newVersionPatch=$((newVersionPatch + count_ops))
231231
fi
232232

233233
newVersion=$(/usr/bin/env bash -c "${dir}/validateSemver.sh -9p full $newVersionMajor.$newVersionMinor.$newVersionPatch")

0 commit comments

Comments
 (0)