From 371196e382c83c4b2257f33d46b20b40d56af016 Mon Sep 17 00:00:00 2001 From: martinohanlon Date: Mon, 16 Dec 2019 21:18:29 +0000 Subject: [PATCH] update to fix java 1.1x version check --- StartServer.command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StartServer.command b/StartServer.command index 82cb042..537457c 100755 --- a/StartServer.command +++ b/StartServer.command @@ -15,7 +15,7 @@ JAVA_VER_BUILD="" for token in $(java -version 2>&1 | grep -i version) do - if [[ $token =~ \"([[:digit:]])\.([[:digit:]])\.(.*)\" ]] + if [[ $token =~ \"([[:digit:]]+)\.([[:digit:]]+)\.(.*)\" ]] then JAVA_VER_MAJOR=${BASH_REMATCH[1]} JAVA_VER_MINOR=${BASH_REMATCH[2]}