Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Fixing edge case for patch version of 0 #3063

Merged
merged 1 commit into from
Dec 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/semvercompare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ semvercompare() {
# No pre-release was found so we increment the patch version and attach a
# -0 to enable pre-releases being found.
local ov=( ${semvercompareOldVer//./ } ) # Turn the version into an array
((ov[2]++)) # Increment the patch release
((ov[2]+=1)) # Increment the patch release
out=$(vert ">${ov[0]}.${ov[1]}.${ov[2]}-0" $semvercompareNewVer)
ret=$?
fi
Expand Down