Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
9e48988877
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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