You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ca...@apache.org on 2013/05/20 19:08:25 UTC

svn commit: r1484527 - /zookeeper/trunk/bin/zkEnv.sh

Author: camille
Date: Mon May 20 17:08:25 2013
New Revision: 1484527

URL: http://svn.apache.org/r1484527
Log:
ZOOKEEPER-1663. scripts don't work when path contains spaces (Amichai Rothman via camille)

Modified:
    zookeeper/trunk/bin/zkEnv.sh

Modified: zookeeper/trunk/bin/zkEnv.sh
URL: http://svn.apache.org/viewvc/zookeeper/trunk/bin/zkEnv.sh?rev=1484527&r1=1484526&r2=1484527&view=diff
==============================================================================
--- zookeeper/trunk/bin/zkEnv.sh (original)
+++ zookeeper/trunk/bin/zkEnv.sh Mon May 20 17:08:25 2013
@@ -91,7 +91,7 @@ done
 
 #make it work in the binary package
 #(use array for LIBPATH to account for spaces within wildcard expansion)
-if [ -e "${ZOOKEEPER_PREFIX}/share/zookeeper/zookeeper-*.jar" ]; then
+if ls "${ZOOKEEPER_PREFIX}"/share/zookeeper/zookeeper-*.jar > /dev/null 2>&1; then 
   LIBPATH=("${ZOOKEEPER_PREFIX}"/share/zookeeper/*.jar)
 else
   #release tarball format