diff --git a/start-utils b/start-utils index 670344ad..9641256e 100644 --- a/start-utils +++ b/start-utils @@ -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