You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/09/28 17:44:23 UTC

groovy git commit: Remove the bash specific code further

Repository: groovy
Updated Branches:
  refs/heads/master 90b3a8753 -> 042dbdb3f


Remove the bash specific code further


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/042dbdb3
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/042dbdb3
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/042dbdb3

Branch: refs/heads/master
Commit: 042dbdb3f74a238a09768676f03ea05dcce95606
Parents: 90b3a87
Author: sunlan <su...@apache.org>
Authored: Fri Sep 29 01:31:49 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Fri Sep 29 01:31:49 2017 +0800

----------------------------------------------------------------------
 src/bin/startGroovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/042dbdb3/src/bin/startGroovy
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index 26343cf..ac6350d 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -280,7 +280,7 @@ startGroovy ( ) {
     JAVA_VERSION=`"$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}' | cut -d "_" -f1`
     if [ "$JAVA_VERSION" \> "1.8.0" ]; then
     		ADD_MODULES_OPT="--add-modules"
-    		test "${JAVA_OPTS#*$ADD_MODULES_OPT}" == "$JAVA_OPTS" && JAVA_OPTS="$JAVA_OPTS $ADD_MODULES_OPT ALL-SYSTEM"
+    		[ "${JAVA_OPTS#*$ADD_MODULES_OPT}" = "$JAVA_OPTS" ] && JAVA_OPTS="$JAVA_OPTS $ADD_MODULES_OPT ALL-SYSTEM"
     fi
 
     CLASS=$1