build: Support building with Gash.
[mes.git] / build-aux / check-mes.sh
index 1555f31b26b09efb9e6675290653114b8b734b81..a2dabc890bd1a31da91ddfe22ded23713e1c74a8 100755 (executable)
@@ -66,14 +66,14 @@ for t in $tests; do
         echo $t: [SKIP];
         continue
     fi
-    ${top_builddir}/pre-inst-env sh "$t" &> $t.${mes}log
+    ${top_builddir}/pre-inst-env sh "$t" > $t.${mes}log 2>&1
     r=$?
-    total=$((total+1))
+    total=$(expr $total + 1)
     if [ $r = 0 ]; then
         echo $t: [${mes}OK]
     else
         echo $t: [${mes}FAIL]
-        fail=$((fail+1))
+        fail=$(expr $fail + 1)
     fi
 done
 if [ $fail != 0 ]; then