ソースを参照

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 年 前
コミット
9e48988877
1 ファイル変更1 行追加1 行削除
  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