fix: corrected versionLessThan to handle b1.7.3 style

#1159
This commit is contained in:
Geoff Bourne 2021-12-04 09:58:28 -06:00
parent 9098b198c3
commit 6c636c3d9c

View File

@ -113,7 +113,9 @@ function normalizeMemSize() {
function versionLessThan() {
local activeParts
IFS=. read -ra activeParts <<<"${VANILLA_VERSION%%-*}"
version=${VANILLA_VERSION%%-*} # for snapshot/rc versions
version=${version##b} # for versions like b1.7.3
IFS=. read -ra activeParts <<<"${version}"
local givenParts
IFS=. read -ra givenParts <<<"$1"