From 5202147d9f4077afe6ac185654fa153c7fbd6f95 Mon Sep 17 00:00:00 2001 From: Eduard Tudenhoefner Date: Tue, 3 May 2016 13:55:21 +0200 Subject: [PATCH] Use -lt comparator for JVM patch version Patch by etudenhoefner; reviewed by mshuler for CASSANDRA-11661 --- conf/cassandra-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh index eccea489c7..13e9cc71d8 100644 --- a/conf/cassandra-env.sh +++ b/conf/cassandra-env.sh @@ -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