Fixed Java version in build script.
This commit is contained in:
parent
3ace8b3151
commit
35a90e3ff9
1 changed files with 4 additions and 3 deletions
7
build.sh
7
build.sh
|
@ -40,12 +40,13 @@ function check_env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Java version check.
|
# Java version check.
|
||||||
|
JAVA_VERSION=17;
|
||||||
javaVersionCheck=`javac -version 2>&1`
|
javaVersionCheck=`javac -version 2>&1`
|
||||||
if [[ "$javaVersionCheck" =~ ^.*\ 11. ]]; then
|
if [[ "$javaVersionCheck" =~ ^.*\ ${JAVA_VERSION}. ]]; then
|
||||||
echo "Java 11 version requirement..... OK"
|
echo "Java ${JAVA_VERSION} version requirement..... OK"
|
||||||
let "okCount+=1"
|
let "okCount+=1"
|
||||||
else
|
else
|
||||||
echo "Java 11 version requirement..... MISSING"
|
echo "Java ${JAVA_VERSION} version requirement..... MISSING"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Git check.
|
# Git check.
|
||||||
|
|
Loading…
Reference in a new issue