We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 174444d commit f201d79Copy full SHA for f201d79
dist/bin/common
@@ -62,7 +62,7 @@ if [ ! -x "$JAVACMD" ] ; then
62
fi
63
64
# parses 1.7, 1.8, 9, etc out of java version "1.8.0_91"
65
-JAVA_VERSION=$("$JAVACMD" -version 2>&1 | grep ' version "' | sed 's/.*version "\([0-9]*\)\(\.[0-9]*\)\{0,1\}\(.*\)*"/\1\2/; 1q')
+JAVA_VERSION=$("$JAVACMD" -version 2>&1 | grep ' version "' | tr '\r' '\n' | sed 's/.*version "\([0-9]*\)\(\.[0-9]*\)\{0,1\}\(.*\)*"/\1\2/; 1q')
66
67
if [ "$JAVA_VERSION" != "1.8" ] ; then
68
echo "Error: Java 8 is required, actual $JAVA_VERSION"
0 commit comments