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 08:06:44 UTC

groovy git commit: Remove the bash specific code

Repository: groovy
Updated Branches:
  refs/heads/master f6833f748 -> 28d2f6a5f


Remove the bash specific code


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

Branch: refs/heads/master
Commit: 28d2f6a5f34f44f524ffea0e44be70c3c6a5c24e
Parents: f6833f7
Author: sunlan <su...@apache.org>
Authored: Thu Sep 28 16:06:38 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Thu Sep 28 16:06:38 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/28d2f6a5/src/bin/startGroovy
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index be8b07a..26343cf 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -278,7 +278,7 @@ fi
 
 startGroovy ( ) {
     JAVA_VERSION=`"$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}' | cut -d "_" -f1`
-    if [[ "$JAVA_VERSION" > "1.8.0" ]]; then
+    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"
     fi