wait-on-file: use proper variable in math
This seems better and safer to be explicit.
Differential Revision: https://phab.mercurial-scm.org/D8426
--- a/tests/testlib/wait-on-file Wed Apr 15 20:08:36 2020 +0200
+++ b/tests/testlib/wait-on-file Wed Apr 15 20:10:35 2020 +0200
@@ -29,7 +29,7 @@
fi
while [ "$timer" -gt 0 ] && [ ! -f "$wait_on" ];
do
- timer=$(( timer - 1))
+ timer=$(( $timer - 1))
sleep 0.01
done
if [ "$timer" -le 0 ]; then