Skip to content

Commit 257e191

Browse files
authored
Merge pull request #15 from AlexAtkinson/fix/patchIncrement
Fix/patch increment
2 parents 4a5c1f2 + 7f27089 commit 257e191

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/detectNewVersion.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,12 @@ elif [[ -n $count_feature || -n $count_enhancement ]]; then
229229
elif [[ -n $count_fix || -n $count_bugfix || -n $count_hotfix || -n $count_ops ]]; then
230230
newVersionMajor=$lastVersionMajor
231231
newVersionMinor=$lastVersionMinor
232+
newVersionPatch=$lastVersionPatch
232233
[[ -n $count_fix ]] && newVersionPatch=$((lastVersionPatch + count_fix))
233234
[[ -n $count_bugfix ]] && newVersionPatch=$((newVersionPatch + count_bugfix))
234235
[[ -n $count_hotfix ]] && newVersionPatch=$((newVersionPatch + count_hotfix))
235236
[[ -n $count_ops ]] && newVersionPatch=$((newVersionPatch + count_ops))
236-
elif [[ -n $arg_p && -z $incrementMajor && -z $count_feature && -z $count_enhancement && -z $count_fix && -z $count_bugfix && -z $count_hotfix && -z $count_ops ]]; then
237+
elif [[ -n $arg_p ]]; then
237238
newVersionMajor=$lastVersionMajor
238239
newVersionMinor=$lastVersionMinor
239240
newVersionPatch=$((lastVersionPatch + 1))

0 commit comments

Comments
 (0)