From 85920266afd45a972d5e1b092b45de5d8d8496a5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 22 Jun 2019 09:33:10 -0700 Subject: Fix FAILCOUNT arithmetic for mksh. mksh doesn't support $[], only $(()). --- scripts/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3