Permalink
Browse files

Fixed an issue with shell scripts not handling -z correctly.

  • Loading branch information...
1 parent ebcbd5c commit 448cad5e97e1c5e1fa377cc0076045e28996922e @afeinberg afeinberg committed Jun 1, 2010
Showing with 6 additions and 6 deletions.
  1. +2 −2 bin/build-readonly-store.sh
  2. +1 −1 bin/run-class.sh
  3. +2 −2 bin/sort.sh
  4. +1 −1 bin/voldemort-server.sh
@@ -30,8 +30,8 @@ done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
-if [ -z $VOLD_OPTS ]; then
+if [ -z "$VOLD_OPTS" ]; then
VOLD_OPTS="-Xmx2G -server"
fi
-java $VOLD_OPTS -cp $CLASSPATH voldemort.store.readonly.JsonStoreBuilder $@
+java $VOLD_OPTS -cp $CLASSPATH voldemort.store.readonly.JsonStoreBuilder $@
View
@@ -34,7 +34,7 @@ do
done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
-if [ -z $VOLD_OPTS ]; then
+if [ -z "$VOLD_OPTS" ]; then
VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
fi
View
@@ -35,8 +35,8 @@ do
done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
-if [ -z $VOLD_OPTS ]; then
+if [ -z "$VOLD_OPTS" ]; then
VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
fi
-java $VOLD_OPTS -cp $CLASSPATH voldemort.store.readonly.StringSorter $@
+java $VOLD_OPTS -cp $CLASSPATH voldemort.store.readonly.StringSorter $@
View
@@ -41,7 +41,7 @@ done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
-if [ -z $VOLD_OPTS ]; then
+if [ -z "$VOLD_OPTS" ]; then
VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
fi

0 comments on commit 448cad5

Please sign in to comment.