Fixed Java version check in build script.
This commit is contained in:
parent
44b1865a9b
commit
c2aeedced2
12
build.sh
12
build.sh
@ -83,11 +83,11 @@ function build_local
|
|||||||
|
|
||||||
# Java version check.
|
# Java version check.
|
||||||
javaVersionCheck=`javac -version 2>&1`
|
javaVersionCheck=`javac -version 2>&1`
|
||||||
if [[ "$javaVersionCheck" =~ ^.*\ 1.8 ]]; then
|
if [[ "$javaVersionCheck" =~ ^.*\ 11. ]]; then
|
||||||
echo "Java 8 version requirement..... OK"
|
echo "Java 11 version requirement..... OK"
|
||||||
let "okCount+=1"
|
let "okCount+=1"
|
||||||
else
|
else
|
||||||
echo "Java 8 version requirement..... MISSING"
|
echo "Java 11 version requirement..... MISSING"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$okCount" == 3 ]; then
|
if [ "$okCount" == 3 ]; then
|
||||||
@ -125,11 +125,11 @@ function build_tagandpush
|
|||||||
|
|
||||||
# Java version check.
|
# Java version check.
|
||||||
javaVersionCheck=`javac -version 2>&1`
|
javaVersionCheck=`javac -version 2>&1`
|
||||||
if [[ "$javaVersionCheck" =~ ^.*\ 1.8 ]]; then
|
if [[ "$javaVersionCheck" =~ ^.*\ 11. ]]; then
|
||||||
echo "Java 8 version requirement..... OK"
|
echo "Java 11 version requirement..... OK"
|
||||||
let "okCount+=1"
|
let "okCount+=1"
|
||||||
else
|
else
|
||||||
echo "Java 8 version requirement..... MISSING"
|
echo "Java 11 version requirement..... MISSING"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Git check.
|
# Git check.
|
||||||
|
Loading…
Reference in New Issue
Block a user