diff options
author | teor <teor2345@gmail.com> | 2014-10-01 17:56:53 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2014-10-01 17:56:53 +1000 |
commit | 7c0215f8cafd2b7e1d251439b97ad97ec46e6211 (patch) | |
tree | e8cf4d6dc30040f313c9918a3794a2f03b91b42d /src/test/test-network.sh | |
parent | b448ec195dd8687d2d5f363e12fec046eb2d1677 (diff) | |
download | tor-7c0215f8cafd2b7e1d251439b97ad97ec46e6211.tar.gz tor-7c0215f8cafd2b7e1d251439b97ad97ec46e6211.zip |
test-network.sh: Use "/bin/echo -n" rather than builtin echo
The default shell on OS X is bash, which has a builtin echo. When called
in "sh" mode, this echo does not accept "-n". This patch uses "/bin/echo -n"
instead.
Partially fixes issue 13161.
Diffstat (limited to 'src/test/test-network.sh')
-rwxr-xr-x | src/test/test-network.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/test-network.sh b/src/test/test-network.sh index 7b59864166..e1bed5c694 100755 --- a/src/test/test-network.sh +++ b/src/test/test-network.sh @@ -1,5 +1,7 @@ #! /bin/sh +ECHO_N="/bin/echo -n" + until [ -z $1 ] do case $1 in @@ -40,8 +42,8 @@ PATH="$TOR_DIR/src/or:$TOR_DIR/src/tools:$PATH" # Sleep some, waiting for the network to bootstrap. # TODO: Add chutney command 'bootstrap-status' and use that instead. BOOTSTRAP_TIME=18 -echo -n "$myname: sleeping for $BOOTSTRAP_TIME seconds" +$ECHO_N "$myname: sleeping for $BOOTSTRAP_TIME seconds" n=$BOOTSTRAP_TIME; while [ $n -gt 0 ]; do - sleep 1; n=$(expr $n - 1); echo -n . + sleep 1; n=$(expr $n - 1); $ECHO_N . done; echo "" ./chutney verify $CHUTNEY_NETWORK |