mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Fixed versionLessThan comparison for snapshots
This commit is contained in:
parent
9842a52820
commit
9ff94f9bd5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user