diecui1202 commented on issue #1347: [Dubbo-1330] Fix Support MetaspaceSize and MaxMetaspaceSize vm args in java8+ URL: https://github.com/apache/incubator-dubbo/pull/1347#issuecomment-388711874 @web1992 your shell is not work on my mac os. you can use this way: ``` JAVA_VERSION=`$JAVA_HOME"/bin/java" -version 2>&1` || { echo $JAVA_HOME"/bin/java -version failed"; exit 1; } JAVA_VERSION_MAJOR=${JAVA_VERSION:16:1} if [ "$JAVA_VERSION_MAJOR" -ge 8 ]; then ...... ``` It works on mac and linux.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org