[plm] 09/10: don't complain on . as JAVA_HOME

Martin Quinson mquinson at alioth.debian.org
Sun Sep 8 21:27:58 UTC 2013


This is an automated email from the git hooks/post-receive script.

mquinson pushed a commit to branch debian-debian
in repository plm.

commit 364afe019a9cfc1744635aaac05341d93f97df50
Author: Martin Quinson <martin.quinson at loria.fr>
Date:   Sun Sep 8 23:03:32 2013 +0200

    don't complain on . as JAVA_HOME
---
 debian/plm.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/plm.sh b/debian/plm.sh
index e5b28cd..8e35dfe 100755
--- a/debian/plm.sh
+++ b/debian/plm.sh
@@ -7,10 +7,10 @@
 export JYTHON_OPTS="${JYTHON_OPTS} -Dpython.cachedir=${HOME}/.jython_cachedir"
 
 # Detect and warn about a possible misconfiguration
-if [ -n $JAVA_HOME ] ; then
+if [ -n "$JAVA_HOME" ] && [ "x$JAVA_HOME" != x. ] ; then
 	echo "Your JAVA_HOME is set to $JAVA_HOME. Please make sure that this points to a Java7 runtime"
 fi	
-if [ -n $JAVA_CMD ] ; then
+if [ -n "$JAVA_CMD" ] && [ "x$JAVA_CMD" != x. ] ; then
 	echo "Your JAVA_CMD is set to $JAVA_CMD. Please make sure that this points to a Java7 runtime"
 fi	
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/plm.git



More information about the pkg-java-commits mailing list