[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] Use POSIX shell arithmetic syntax, not a bashism



commit 9e48988877c848faa9d398b5486ebf313c48a816
Author: Taylor Yu <tlyu@xxxxxxx>
Date:   Fri May 19 15:01:11 2017 -0400

    Use POSIX shell arithmetic syntax, not a bashism
    
    Some distributions have a /bin/sh that isn't bash.  Use POSIX syntax
    for shell arithmetic, instead of a deprecated bash-specific syntax.
    
    Fixes 22302.
---
 tools/test-network.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/test-network.sh b/tools/test-network.sh
index d77003b..2be5558 100755
--- a/tools/test-network.sh
+++ b/tools/test-network.sh
@@ -303,7 +303,7 @@ if [ "$CHUTNEY_BOOTSTRAP_TIME" -ge 0 ]; then
           -a "$VERIFY_EXIT_STATUS" -eq 0 ]; do
       "$CHUTNEY" verify "$CHUTNEY_NETWORK"
       VERIFY_EXIT_STATUS="$?"
-      n_rounds=$[n_rounds+1]
+      n_rounds=$((n_rounds+1))
   done
   $ECHO "Completed $n_rounds of $CHUTNEY_ROUNDS verify rounds."
 else



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits