Skip to content

Commit

Permalink
dist/bin/common: Stop enforcing Java 8 only
Browse files Browse the repository at this point in the history
  • Loading branch information
smarter committed Oct 1, 2018
1 parent befe1ce commit 79c95aa
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dist/bin/common
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ if [ ! -x "$JAVACMD" ] ; then
exit 1
fi

# parses 1.7, 1.8, 9, etc out of java version "1.8.0_91"
JAVA_VERSION=$("$JAVACMD" -version 2>&1 | grep ' version "' | tr '\r' '\n' | sed 's/.*version "\([0-9]*\)\(\.[0-9]*\)\{0,1\}\(.*\)*"/\1\2/; 1q')

if [ "$JAVA_VERSION" != "1.8" ] ; then
echo "Error: Java 8 is required, actual $JAVA_VERSION"
exit 1
fi

if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
Expand Down

0 comments on commit 79c95aa

Please sign in to comment.