wait-on-file: use proper variable in math
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Apr 2020 20:10:35 +0200
changeset 44727 694d40416d62
parent 44726 2789f25fc2b6
child 44728 59ad165f6cdb
wait-on-file: use proper variable in math This seems better and safer to be explicit. Differential Revision: https://phab.mercurial-scm.org/D8426
tests/testlib/wait-on-file
--- 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