From a92c7f761247de70a5ac98c4026ab9fadbec479a Mon Sep 17 00:00:00 2001 From: larsh Date: Thu, 7 Mar 2013 05:51:26 +0000 Subject: [PATCH] HBASE-7153 print gc option in hbase-env.sh affects hbase zkcli (Dave Latham and LarsH) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1453686 13f79535-47bb-0310-9956-ffa450edef68 --- bin/hbase | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hbase b/bin/hbase index fc0ce590816..1e18b3c0350 100755 --- a/bin/hbase +++ b/bin/hbase @@ -238,7 +238,7 @@ unset IFS #Set the right GC options based on the what we are running declare -a client_cmds=("shell" "hbck" "hlog" "hfile" "zkcli") -for cmd in $client_cmds; do +for cmd in ${client_cmds[@]}; do if [[ $cmd == $COMMAND ]]; then client=true break