summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaikiran Pai <jaikiran@apache.org>2021-11-28 20:43:27 +0530
committerJaikiran Pai <jaikiran@apache.org>2021-11-28 20:43:27 +0530
commit190d9ad7249c7fa27ed626c2449e3d574c80838b (patch)
tree53e3d973532bebbb491f06a3e2993289ca1b7a88 /src
parentf3e3345e8af2b117e79757690644a04bb584bf82 (diff)
downloadant-190d9ad7249c7fa27ed626c2449e3d574c80838b.tar.gz
fix condition check for non-bash shell
Diffstat (limited to 'src')
-rw-r--r--src/script/ant2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/ant b/src/script/ant
index 4095a729d..a160a7287 100644
--- a/src/script/ant
+++ b/src/script/ant
@@ -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