t/t5000-tar-tree.sh: avoid "test <cond> -a/-o <cond>"
The construct is error-prone; "test" being built-in in most modern shells, the reason to avoid "test <cond> && test <cond>" spawning one extra process by using a single "test <cond> -a <cond>" no longer exists. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elia Pinto committed
Jun 6, 2014 at 07:55 UTC
d0b30a3d4d486040a8a72f60e00b51fe1a3c16ba
1 file changed
+1
-1
t/t5000-tar-tree.sh
+1
-1
@@ -72,7 +72,7 @@ check_tar() {
72
for header in *.paxheader
73
do
74
data=${header%.paxheader}.data &&
75
- if test -h $data -o -e $data
75
+ if test -h $data || test -e $data
76
then
77
path=$(get_pax_header $header path) &&
78
if test -n "$path"