diff tests/testlib/wait-on-file @ 44727:694d40416d62

wait-on-file: use proper variable in math This seems better and safer to be explicit. Differential Revision: https://phab.mercurial-scm.org/D8426
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Apr 2020 20:10:35 +0200
parents 2789f25fc2b6
children 23dd43d94f50
line wrap: on
line diff
--- 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