Merge "Removed `which` dependency, now using proper shell builtin."
authorEd Warnicke <eaw@cisco.com>
Tue, 10 Jun 2014 13:46:52 +0000 (13:46 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 10 Jun 2014 13:46:52 +0000 (13:46 +0000)
opendaylight/distribution/opendaylight/src/main/resources/run.sh

index dba996a99425036ed0044514380726513671b47b..1e903d06503c286d7a0e8b41556c826eb5d6d105 100755 (executable)
@@ -13,7 +13,7 @@ if [[ $platform == 'linux' ]]; then
 
    if [[ -z ${JAVA_HOME} ]]; then
       # Find the actual location of the Java launcher:
-      java_launcher=`which java`
+      java_launcher=`command -v java`
       java_launcher=`readlink -f "${java_launcher}"`
 
       # Compute the Java home from the location of the Java launcher: