From 6c636c3d9c5536d0e89f9353496d99b1659ec070 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 4 Dec 2021 09:58:28 -0600 Subject: [PATCH] fix: corrected versionLessThan to handle b1.7.3 style #1159 --- scripts/start-utils | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/start-utils b/scripts/start-utils index 00f8a9a4..21e57379 100755 --- a/scripts/start-utils +++ b/scripts/start-utils @@ -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"