You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2018/07/12 12:51:25 UTC
[02/11] groovy git commit: Remove the bash specific code
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/763c056a
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/763c056a
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/763c056a
Branch: refs/heads/GROOVY_2_5_X
Commit: 763c056a6ffe6346aeeb01a94ab623e8ae93643d
Parents: 006d123
Author: sunlan <su...@apache.org>
Authored: Thu Sep 28 16:06:38 2017 +0800
Committer: Paul King <pa...@asert.com.au>
Committed: Thu Jul 12 22:37:27 2018 +1000
----------------------------------------------------------------------
src/bin/startGroovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/763c056a/src/bin/startGroovy
----------------------------------------------------------------------
diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index 2ac37a6..a2804e4 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -279,7 +279,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