Commit 4eaeb326 authored by Elia Pinto's avatar Elia Pinto Committed by Junio C Hamano

check_bindir: 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: 's avatarElia Pinto <>
Reviewed-by: 's avatarMatthieu Moy <>
Signed-off-by: 's avatarJunio C Hamano <>
parent 0953113b
......@@ -2,7 +2,7 @@
if test "$bindir" != "$gitexecdir" -a -x "$gitcmd"
if test "$bindir" != "$gitexecdir" && test -x "$gitcmd"
echo "!! You have installed git-* commands to new gitexecdir."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment