You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ju...@apache.org on 2014/01/24 18:54:30 UTC

git commit: kafka-1214; Support arguments to zookeeper-shell.sh script; patched by Philp K. Warren; reviewed by Jun Rao

Updated Branches:
  refs/heads/trunk e1f7bea15 -> c9028ad8c


kafka-1214; Support arguments to zookeeper-shell.sh script; patched by Philp K. Warren; reviewed by Jun Rao


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/c9028ad8
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/c9028ad8
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/c9028ad8

Branch: refs/heads/trunk
Commit: c9028ad8c5d8bac9278836ebbc21fada5e6b562b
Parents: e1f7bea
Author: Philp K. Warren <pk...@gmail.com>
Authored: Fri Jan 24 09:58:28 2014 -0800
Committer: Jun Rao <ju...@gmail.com>
Committed: Fri Jan 24 09:58:28 2014 -0800

----------------------------------------------------------------------
 bin/zookeeper-shell.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/c9028ad8/bin/zookeeper-shell.sh
----------------------------------------------------------------------
diff --git a/bin/zookeeper-shell.sh b/bin/zookeeper-shell.sh
index 92cce76..95007fa 100755
--- a/bin/zookeeper-shell.sh
+++ b/bin/zookeeper-shell.sh
@@ -14,10 +14,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-if [ $# -ne 1 ];
+if [ $# -lt 1 ];
 then
-	echo "USAGE: $0 zookeeper_host:port[/path]"
+	echo "USAGE: $0 zookeeper_host:port[/path] [args...]"
 	exit 1
 fi
 
-exec $(dirname $0)/kafka-run-class.sh org.apache.zookeeper.ZooKeeperMain -server $1
\ No newline at end of file
+exec $(dirname $0)/kafka-run-class.sh org.apache.zookeeper.ZooKeeperMain -server "$@"