# HG changeset patch # User Pierre-Yves David # Date 1586974235 -7200 # Node ID 694d40416d628607cf5291d5666162959423c1eb # Parent 2789f25fc2b6b7f30d234df512e542026fa3b04c wait-on-file: use proper variable in math This seems better and safer to be explicit. Differential Revision: https://phab.mercurial-scm.org/D8426 diff -r 2789f25fc2b6 -r 694d40416d62 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