zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cami...@apache.org
Subject svn commit: r1484527 - /zookeeper/trunk/bin/zkEnv.sh
Date Mon, 20 May 2013 17:08:25 GMT
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



Mime
View raw message