aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/parallel.builder.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parallel.builder.sh b/tests/parallel.builder.sh
index 280eb1de8..d092bc5a6 100644
--- a/tests/parallel.builder.sh
+++ b/tests/parallel.builder.sh
@@ -7,7 +7,7 @@ while ! ln -s x $shared.lock 2> /dev/null; do
done
test -f $shared.cur || echo 0 > $shared.cur
test -f $shared.max || echo 0 > $shared.max
-new=$(expr $(cat $shared.cur) + 1)
+new=$(($(cat $shared.cur) + 1))
if test $new -gt $(cat $shared.max); then
echo $new > $shared.max
fi
@@ -25,5 +25,5 @@ while ! ln -s x $shared.lock 2> /dev/null; do
sleep 1
done
test -f $shared.cur || echo 0 > $shared.cur
-echo $(expr $(cat $shared.cur) - 1) > $shared.cur
+echo $(($(cat $shared.cur) - 1)) > $shared.cur
rm $shared.lock