Selaa lähdekoodia

ZOOKEEPER-1538. Improve space handling in zkServer.sh and zkEnv.sh. (Andrew Ferguson via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1381900 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 12 vuotta sitten
vanhempi
commit
eaade80f36
3 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 3 0
      CHANGES.txt
  2. 1 1
      bin/zkEnv.sh
  3. 2 2
      bin/zkServer.sh

+ 3 - 0
CHANGES.txt

@@ -240,6 +240,9 @@ BUGFIXES:
   ZOOKEEPER-1380. zkperl: _zk_release_watch doesn't remove items properly from
   the watch list. (Botond Hejj via mahadev)
 
+  ZOOKEEPER-1538. Improve space handling in zkServer.sh and zkEnv.sh. (Andrew
+  Ferguson via mahadev)
+
 IMPROVEMENTS:
 
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,

+ 1 - 1
bin/zkEnv.sh

@@ -76,7 +76,7 @@ do
 done
 
 #make it work in the binary package
-if [ -e ${ZOOKEEPER_PREFIX}/share/zookeeper/zookeeper-*.jar ]; then
+if [ -e "${ZOOKEEPER_PREFIX}/share/zookeeper/zookeeper-*.jar" ]; then
   LIBPATH="${ZOOKEEPER_PREFIX}"/share/zookeeper/*.jar
 else
   #release tarball format

+ 2 - 2
bin/zkServer.sh

@@ -44,7 +44,7 @@ fi
 
 # use POSTIX interface, symlink is followed automatically
 ZOOBIN="${BASH_SOURCE-$0}"
-ZOOBIN=`dirname ${ZOOBIN}`
+ZOOBIN=`dirname "${ZOOBIN}"`
 ZOOBINDIR=`cd ${ZOOBIN}; pwd`
 
 if [ -e "$ZOOBIN/../libexec/zkEnv.sh" ]; then
@@ -64,7 +64,7 @@ then
 fi
 
 # if we give a more complicated path to the config, don't screw around in $ZOOCFGDIR
-if [ "x`dirname $ZOOCFG`" != "x$ZOOCFGDIR" ]
+if [ "x`dirname \"$ZOOCFG\"`" != "x$ZOOCFGDIR" ]
 then
     ZOOCFG="$2"
 fi