Fixed versionLessThan comparison for snapshots

This commit is contained in:
Geoff Bourne 2020-04-17 21:15:44 -05:00
parent 9842a52820
commit 9ff94f9bd5

View File

@ -71,6 +71,10 @@ function versionLessThan {
local givenParts
IFS=. read -ra givenParts <<< "$1"
if (( ${#activeParts[@]} < 2 )); then
return 1
fi
if (( activeParts[0] < givenParts[0] )) || \
(( activeParts[0] == givenParts[0] && activeParts[1] < givenParts[1] )); then
return 0