tests: replace [[]] bashism with portable [] invocation
authorAugie Fackler <augie@google.com>
Tue, 10 Dec 2019 10:31:18 -0500
changeset 43828 36444dddaeb4
parent 43827 c27e688fcdc3
child 43829 16b607e9f714
tests: replace [[]] bashism with portable [] invocation In this case nothing fancy is required. Differential Revision: https://phab.mercurial-scm.org/D7596
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"