# HG changeset patch # User Augie Fackler # Date 1575991878 18000 # Node ID 36444dddaeb40d5e75a693b96c35117118e931c8 # Parent c27e688fcdc375690929447e37901a4765ea3de4 tests: replace [[]] bashism with portable [] invocation In this case nothing fancy is required. Differential Revision: https://phab.mercurial-scm.org/D7596 diff -r c27e688fcdc3 -r 36444dddaeb4 tests/test-amend.t --- a/tests/test-amend.t Fri Nov 29 17:15:24 2019 +0100 +++ b/tests/test-amend.t Tue Dec 10 10:31:18 2019 -0500 @@ -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"