Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
9e48988877
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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