Repository: accumulo
Updated Branches:
  refs/heads/master 46f5e8c88 -> e7451ffe9


ACCUMULO-2993 fix division by zero

When given a filename, wc will output that filename, resulting in bad
division as the shell tries to interpret path separators. Instead, we
can have wc read from stdin.


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

Branch: refs/heads/master
Commit: e7451ffe978da9397a8ee6a6a1a6d62f6d379272
Parents: 46f5e8c
Author: Mike Drob <md...@cloudera.com>
Authored: Mon Jul 14 18:54:38 2014 -0500
Committer: Mike Drob <md...@cloudera.com>
Committed: Mon Jul 14 18:54:38 2014 -0500

----------------------------------------------------------------------
 assemble/bin/start-server.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/e7451ffe/assemble/bin/start-server.sh
----------------------------------------------------------------------
diff --git a/assemble/bin/start-server.sh b/assemble/bin/start-server.sh
index 2a2d96d..2afabb9 100755
--- a/assemble/bin/start-server.sh
+++ b/assemble/bin/start-server.sh
@@ -40,7 +40,7 @@ SERVICE=$2
 LONGNAME=$3
 [[ -z $LONGNAME ]] && LONGNAME=$2
 
-SLAVES=$(wc -l "${ACCUMULO_CONF_DIR}/slaves")
+SLAVES=$(wc -l < "${ACCUMULO_CONF_DIR}/slaves")
 
 IFCONFIG=/sbin/ifconfig
 [[ ! -x $IFCONFIG ]] && IFCONFIG='/bin/netstat -ie'

Reply via email to