Use -lt comparator for JVM patch version

Patch by etudenhoefner; reviewed by mshuler for CASSANDRA-11661
This commit is contained in:
Eduard Tudenhoefner 2016-05-03 13:55:21 +02:00 committed by Josh McKenzie
parent 86c5a00c23
commit 5202147d9f
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ if [ "$JVM_VERSION" \< "1.7" ] ; then
exit 1;
fi
if [ "$JVM_VERSION" \< "1.8" ] && [ "$JVM_PATCH_VERSION" \< "25" ] ; then
if [ "$JVM_VERSION" \< "1.8" ] && [ "$JVM_PATCH_VERSION" -lt 25 ] ; then
echo "Cassandra 2.0 and later require Java 7u25 or later."
exit 1;
fi