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>
This commit is contained in:
parent
5105edd411
commit
25607db2c3
@ -83,7 +83,7 @@ check_push () {
|
|||||||
test $ref_ret -ne 0 && echo "match for '$branch' failed" && break
|
test $ref_ret -ne 0 && echo "match for '$branch' failed" && break
|
||||||
done
|
done
|
||||||
|
|
||||||
if test $expected_ret -ne $ret -o $ref_ret -ne 0
|
if test $expected_ret -ne $ret || test $ref_ret -ne 0
|
||||||
then
|
then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user