From 7854fed0bdef754047ab1cda830729211e5d21e7 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 14 Jan 2010 22:01:58 +0000
Subject: [PATCH] Fix for issue 4489 (java is not detected even if the JAVA_HOME variable is defined)
---
opends/resource/bin/_script-util.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/resource/bin/_script-util.sh b/opends/resource/bin/_script-util.sh
index 8ed5972..3eff9cd 100644
--- a/opends/resource/bin/_script-util.sh
+++ b/opends/resource/bin/_script-util.sh
@@ -23,7 +23,7 @@
# CDDL HEADER END
#
#
-# Copyright 2008-2009 Sun Microsystems, Inc.
+# Copyright 2008-2010 Sun Microsystems, Inc.
#
# Display an error message
@@ -77,7 +77,7 @@
#
test_java_path() {
OPENDS_JAVA_BIN=`which java 2> /dev/null`
- if test ${?} -eq 0
+ if test -f "${OPENDS_JAVA_BIN}"
then
export OPENDS_JAVA_BIN
else
--
Gitblit v1.10.0