Skip to content

Commit

Permalink
update to fix java 1.1x version check
Browse files Browse the repository at this point in the history
  • Loading branch information
martinohanlon committed Dec 16, 2019
1 parent d140112 commit 371196e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StartServer.command
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down

0 comments on commit 371196e

Please sign in to comment.