Browse Source

fix condition check for non-bash shell

master
Jaikiran Pai 3 years ago
parent
commit
190d9ad724
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/script/ant

+ 1
- 1
src/script/ant View File

@@ -370,7 +370,7 @@ else
fi
# Run "java -XshowSettings:properties" and check the output for "java.specification.version" value
JAVA_SPEC_VERSION=`"$JAVACMD" -XshowSettings:properties 2>&1 | grep "java.specification.version = " | tr -d '[:space:]'`
if [ "$JAVA_SPEC_VERSION" == "java.specification.version=18" ]; then
if [ "$JAVA_SPEC_VERSION" = "java.specification.version=18" ]; then
# set security manager property to allow calls to System.setSecurityManager() at runtime
ANT_OPTS="$ANT_OPTS -Djava.security.manager=allow"
fi


Loading…
Cancel
Save