Skip to content

Commit 391f3ec

Browse files
committed
fix version check in Cygwin
1 parent 97ac294 commit 391f3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/bin/common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fi
6464
# parses 1.7, 1.8, 9, etc out of java version "1.8.0_91"
6565
JAVA_VERSION=$("$JAVACMD" -version 2>&1 | grep ' version "' | sed 's/.*version "\([0-9]*\)\(\.[0-9]*\)\{0,1\}\(.*\)*"/\1\2/; 1q')
6666

67-
if [ "$JAVA_VERSION" != "1.8" ] ; then
67+
if [[ "$JAVA_VERSION" != "1.8"* ]] ; then # * for cygwin : trailing space
6868
echo "Error: Java 8 is required, actual $JAVA_VERSION"
6969
exit 1
7070
fi

0 commit comments

Comments
 (0)