tests: replace [[]] bashism with portable [] invocation
In this case nothing fancy is required.
Differential Revision: https://phab.mercurial-scm.org/D7596
--- 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"