MNG-5658: Fix syntax error in unix script on Solaris SPARC

Submitted by: Frank Langelage <frank.langelage@osnanet.de>
This commit is contained in:
Jason van Zyl 2014-07-06 13:47:11 -04:00
parent d8fd65a3ae
commit 69448a7f09
1 changed files with 2 additions and 2 deletions

View File

@ -79,11 +79,11 @@ case "`uname`" in
export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
if [[ -z "$JAVA_HOME" && -x /usr/libexec/java_home ]] ; then
if [[ -z "$JAVA_HOME" && -x "/usr/libexec/java_home" ]] ; then
#
# Apple JDKs
#
export JAVA_HOME=$(/usr/libexec/java_home)
export JAVA_HOME=/usr/libexec/java_home
fi
;;
esac