CORPRIV-659: Better validation for JAVA_HOME.

This commit is contained in:
Chris Rankin 2017-02-21 16:32:30 +00:00
parent 22d2244ce7
commit 02a9e32d3c

View File

@ -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