Browse Source

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.
Taylor Yu 7 years ago
parent
commit
9e48988877
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/test-network.sh

+ 1 - 1
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