Explorar o código

ZOOKEEPER-1663. scripts don't work when path contains spaces (Amichai Rothman via camille)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1484527 13f79535-47bb-0310-9956-ffa450edef68
Camille Fournier %!s(int64=12) %!d(string=hai) anos
pai
achega
3565ab74ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/zkEnv.sh

+ 1 - 1
bin/zkEnv.sh

@@ -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