Author: jbonofre
Date: Tue Sep 18 13:50:37 2012
New Revision: 1387161

URL: http://svn.apache.org/viewvc?rev=1387161&view=rev
Log:
[KARAF-1756] Fix the wrapper readlink test

Modified:
    
karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service

Modified: 
karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
URL: 
http://svn.apache.org/viewvc/karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service?rev=1387161&r1=1387160&r2=1387161&view=diff
==============================================================================
--- 
karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
 (original)
+++ 
karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
 Tue Sep 18 13:50:37 2012
@@ -18,7 +18,7 @@
 # ------------------------------------------------------------------------
 
 # JAVA_HOME, trying the JDK first and fallback to JRE
-if [ `whichlink readlink` ]; then
+if [ `which readlink` ]; then
   [ -z $JAVA_HOME ] && [ -x /usr/bin/javac ] && export JAVA_HOME="$(readlink 
-f /usr/bin/javac | sed 's:/bin/javac::')"
   [ -z $JAVA_HOME ] && [ -x /usr/bin/java ] && export JAVA_HOME="$(readlink -f 
/usr/bin/java | sed 's:/bin/java::')"
 fi


Reply via email to