From a68e01bf195bc4067807899320c573eb906c92c4 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 2 Jan 2021 01:32:37 +0100 Subject: [PATCH] Fixed build.sh for Java 11. --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 93b10cf..dceae46 100755 --- a/build.sh +++ b/build.sh @@ -41,7 +41,7 @@ function build_snapshot # Java version check. javaVersionCheck=`javac -version 2>&1` - if [[ "$javaVersionCheck" =~ ^.*\ 1.11 ]]; then + if [[ "$javaVersionCheck" =~ ^.*\ 11\. ]]; then echo "Java 11 version requirement..... OK" let "okCount+=1" else @@ -83,7 +83,7 @@ function build_local # Java version check. javaVersionCheck=`javac -version 2>&1` - if [[ "$javaVersionCheck" =~ ^.*\ 1.11 ]]; then + if [[ "$javaVersionCheck" =~ ^.*\ 11\. ]]; then echo "Java 11 version requirement..... OK" let "okCount+=1" else @@ -125,7 +125,7 @@ function build_tagandpush # Java version check. javaVersionCheck=`javac -version 2>&1` - if [[ "$javaVersionCheck" =~ ^.*\ 1.11 ]]; then + if [[ "$javaVersionCheck" =~ ^.*\ 11\. ]]; then echo "Java 11 version requirement..... OK" let "okCount+=1" else