Pārlūkot izejas kodu

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 12 gadi atpakaļ
vecāks
revīzija
3565ab74ba
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      bin/zkEnv.sh

+ 1 - 1
bin/zkEnv.sh

@@ -91,7 +91,7 @@ done
 
 
 #make it work in the binary package
 #make it work in the binary package
 #(use array for LIBPATH to account for spaces within wildcard expansion)
 #(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)
   LIBPATH=("${ZOOKEEPER_PREFIX}"/share/zookeeper/*.jar)
 else
 else
   #release tarball format
   #release tarball format