test-hg.sh: avoid obsolete 'test' syntax
commit25607db2c30c618a18f66350f01b1ccb05c551c6
authorRichard Hansen <rhansen@bbn.com>
Mon, 18 Nov 2013 04:12:47 +0000 (17 23:12 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Nov 2013 21:45:58 +0000 (18 13:45 -0800)
treef2c517b60d60b9e292b04f796efdc0226803933c
parent5105edd411bc472015d63eadaf1f826bebdc92e5
test-hg.sh: avoid obsolete 'test' syntax

The POSIX spec says that the '-a', '-o', and parentheses operands to
the 'test' utility are obsolete extensions due to the potential for
ambiguity.  Replace '-o' with '|| test' to avoid unspecified behavior.

Signed-off-by: Richard Hansen <rhansen@bbn.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/test-hg.sh