Skip to content

Commit

Permalink
Corrected the Java version check.
Browse files Browse the repository at this point in the history
Former-commit-id: 40a73d76589368640c7e2c1afe7c5a7e6ddc303f
  • Loading branch information
Suzanne Millstein committed Nov 1, 2012
1 parent 435af3e commit c1214ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildjava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ "${JAVAC}" == "" ] ; then
fi

# check the version
JAVA_FIVE=`java -version 2>&1 | grep version | /usr/bin/awk '{ print $3; }'| sed -e s/\"//g | sed -e s/java\ version//g | sed -e s/1\.5\..*// | wc -c`
JAVA_FIVE=`java -version 2>&1 | grep version | /usr/bin/awk '{ print $3; }'| sed -e s/\"//g | sed -e s/java\ version//g | sed -e s/1\.[01234]\..*// | wc -c`

# if we have less than 5 characters (i.e. 1.5.0) then quit
if [ "${JAVA_FIVE}" -le "5" ] ; then
Expand Down

0 comments on commit c1214ae

Please sign in to comment.