changeset 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 59ad165f6cdb
files tests/testlib/wait-on-file
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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