Patchwork D7596: tests: replace [[]] bashism with portable [] invocation

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2019, 3:31 p.m.
Message ID <differential-rev-PHID-DREV-4z2iery3anqghcqmqgas-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43669/
State Superseded
Headers show

Comments

phabricator - Dec. 10, 2019, 3:31 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  In this case nothing fancy is required.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-amend.t

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-amend.t b/tests/test-amend.t
--- a/tests/test-amend.t
+++ b/tests/test-amend.t
@@ -493,7 +493,7 @@ 
   $ sleep 1
   $ echo delta >> foo
   $ sleep 3
-  $ if (hg diff -c . | grep 'delta' >/dev/null) || [[ -n "$(hg status)" ]]; then
+  $ if (hg diff -c . | grep 'delta' >/dev/null) || [ -n "$(hg status)" ]; then
   >   echo "OK."
   > else
   >   echo "Bug detected. 'delta' is not part of the commit OR the wdir"