@@ -47,7 +47,7 @@ if [ "$RUN_STANDALONE" = "false" ]; then
exit 1
fi
# Make sure there exists a java executable, it may not be allways the case
# Make sure there exists a java executable, it may not be always the case
if[-z"$JAVA"];then
echo"ERROR: No Java executable found in current PATH: $PATH">&2
echo"If you actually have java installed on the system make sure the executable is in the aforementioned path and that 'type -p java' returns the java executable path">&2
...
...
@@ -55,9 +55,9 @@ if [ -z "$JAVA" ]; then
fi
# Which Java versions can be used to run Jenkins
JAVA_ALLOWED_VERSIONS=("18""110")
JAVA_ALLOWED_VERSIONS=("1.8""11")
# Work out the JAVA version we are working with:
JAVA_VERSION=$($JAVA-version 2>&1 | sed-n';s/.* version "\(.*\)\.\(.*\)\..*".*/\1\2/p;')
JAVA_VERSION=$($JAVA-version 2>&1 | sed-n';s/.* version "\([0-9]\{2,\}\|[0-9]\.[0-9]\)\..*".*/\1/p;')