Patchwork D8426: wait-on-file: use proper variable in math

login
register
mail settings
Submitter phabricator
Date April 16, 2020, 4:55 p.m.
Message ID <b4a9be3b3b8c8daca30a378b01293775@localhost.localdomain>
Download mbox | patch
Permalink /patch/46171/
State Not Applicable
Headers show

Comments

phabricator - April 16, 2020, 4:55 p.m.
Closed by commit rHG694d40416d62: wait-on-file: use proper variable in math (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8426?vs=21103&id=21144

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8426/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8426

AFFECTED FILES
  tests/testlib/wait-on-file

CHANGE DETAILS




To: marmoute, #hg-reviewers, mharbison72, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/testlib/wait-on-file b/tests/testlib/wait-on-file
--- a/tests/testlib/wait-on-file
+++ b/tests/testlib/wait-on-file
@@ -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