From 35a90e3ff96dd727cb6f6c95be34c027cdc53b60 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 23 Sep 2024 02:12:55 +0200 Subject: [PATCH] Fixed Java version in build script. --- build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 50e7381..8ce9e16 100755 --- a/build.sh +++ b/build.sh @@ -40,12 +40,13 @@ function check_env fi # Java version check. + JAVA_VERSION=17; javaVersionCheck=`javac -version 2>&1` - if [[ "$javaVersionCheck" =~ ^.*\ 11. ]]; then - echo "Java 11 version requirement..... OK" + if [[ "$javaVersionCheck" =~ ^.*\ ${JAVA_VERSION}. ]]; then + echo "Java ${JAVA_VERSION} version requirement..... OK" let "okCount+=1" else - echo "Java 11 version requirement..... MISSING" + echo "Java ${JAVA_VERSION} version requirement..... MISSING" fi # Git check.