[
https://issues.apache.org/jira/browse/ACCUMULO-3655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14355579#comment-14355579
]
Josh Elser commented on ACCUMULO-3655:
--------------------------------------
{code}
-if [ `eval $ZOOKEEPER_CMD | wc -l` != "1" ] ; then
+if [[ $(eval $ZOOKEEPER_CMD | wc -l) != "1" ]] ; then
{code}
Was the change from ACCUMULO-2423 which broke this.
> tool.sh erroneously complains about multiple zookeeper*.jar files in
> ZOOKEEPER_HOME
> -----------------------------------------------------------------------------------
>
> Key: ACCUMULO-3655
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3655
> Project: Accumulo
> Issue Type: Bug
> Components: scripts
> Reporter: Josh Elser
> Assignee: Josh Elser
> Priority: Blocker
> Fix For: 1.7.0
>
>
> Noticed that tool.sh doesn't properly check for a single zookeeper.jar in
> $ZOOKEEPER_HOME. It incorrectly errored on my machine:
> {noformat}
> ➜ [email protected] % echo $(eval $ZOOKEEPER_CMD | wc -l)
> 1
> ➜ [email protected] % echo "$(eval $ZOOKEEPER_CMD | wc -l)"
> 1
> {noformat}
> I think the issue is that the leading whitespace is significant.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)