changeset 43846:36444dddaeb4

tests: replace [[]] bashism with portable [] invocation In this case nothing fancy is required. Differential Revision: https://phab.mercurial-scm.org/D7596
author Augie Fackler <augie@google.com>
date Tue, 10 Dec 2019 10:31:18 -0500
parents c27e688fcdc3
children 16b607e9f714
files tests/test-amend.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"