diff options
author | Jaikiran Pai <jaikiran@apache.org> | 2021-11-28 20:43:27 +0530 |
---|---|---|
committer | Jaikiran Pai <jaikiran@apache.org> | 2021-11-28 20:43:27 +0530 |
commit | 190d9ad7249c7fa27ed626c2449e3d574c80838b (patch) | |
tree | 53e3d973532bebbb491f06a3e2993289ca1b7a88 /src | |
parent | f3e3345e8af2b117e79757690644a04bb584bf82 (diff) | |
download | ant-190d9ad7249c7fa27ed626c2449e3d574c80838b.tar.gz |
fix condition check for non-bash shell
Diffstat (limited to 'src')
-rw-r--r-- | src/script/ant | 2 |
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 |