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

login
register
mail settings
Submitter phabricator
Date April 15, 2020, 7:08 p.m.
Message ID <differential-rev-PHID-DREV-yjeu74vmgcxlr2kdbnf5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46131/
State Superseded
Headers show

Comments

phabricator - April 15, 2020, 7:08 p.m.
marmoute created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This seems better and safer to be explicit.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/testlib/wait-on-file

CHANGE DETAILS




To: marmoute, #hg-reviewers
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