From 02a9e32d3c94762d009174fcb6896d8cd914876a Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Tue, 21 Feb 2017 16:32:30 +0000 Subject: [PATCH] CORPRIV-659: Better validation for JAVA_HOME. --- package-demobench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-demobench.sh b/package-demobench.sh index 0ece3c3275..18f4c6c1ba 100755 --- a/package-demobench.sh +++ b/package-demobench.sh @@ -2,7 +2,7 @@ DIRNAME=$(dirname $0) -if [ -z "$JAVA_HOME" ]; then +if [ -z "$JAVA_HOME" -o ! -x $JAVA_HOME/bin/java ]; then echo "Please set JAVA_HOME correctly" exit 1 fi