You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ja...@apache.org on 2021/11/28 15:13:44 UTC

[ant] branch master updated: fix condition check for non-bash shell

This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 190d9ad  fix condition check for non-bash shell
190d9ad is described below

commit 190d9ad7249c7fa27ed626c2449e3d574c80838b
Author: Jaikiran Pai <ja...@apache.org>
AuthorDate: Sun Nov 28 20:43:27 2021 +0530

    fix condition check for non-bash shell
---
 src/script/ant | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/script/ant b/src/script/ant
index 4095a72..a160a72 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