diff options
author | Elliott Hughes <enh@google.com> | 2019-06-22 09:33:10 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-06-24 19:46:42 -0500 |
commit | 85920266afd45a972d5e1b092b45de5d8d8496a5 (patch) | |
tree | a439ab74cbfaf4e0c59b8681a7a2a1b0172184dd /scripts | |
parent | 9c8c0400f1e2237ebe10ebde3bc9f0a92a8c0641 (diff) | |
download | toybox-85920266afd45a972d5e1b092b45de5d8d8496a5.tar.gz |
Fix FAILCOUNT arithmetic for mksh.
mksh doesn't support $[], only $(()).
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/runtest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runtest.sh b/scripts/runtest.sh index f0450bd9..3a5b09c6 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -125,7 +125,7 @@ testing() DIFF="$(diff -au${NOSPACE:+b} expected actual)" if [ ! -z "$DIFF" ] then - FAILCOUNT=$[$FAILCOUNT+1] + FAILCOUNT=$(($FAILCOUNT+1)) printf "%s\n" "$SHOWFAIL: $NAME" if [ -n "$VERBOSE" ] then |