From: Elia Pinto Date: Fri, 6 Jun 2014 14:55:44 +0000 (-0700) Subject: check_bindir: avoid "test -a/-o " X-Git-Tag: v2.1.0-rc0~79^2~19 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4eaeb3264e1f86b99ba7732d9f69039a5805c435?ds=inline;hp=--cc check_bindir: avoid "test -a/-o " The construct is error-prone; "test" being built-in in most modern shells, the reason to avoid "test && test " spawning one extra process by using a single "test -a " no longer exists. Signed-off-by: Elia Pinto Reviewed-by: Matthieu Moy Signed-off-by: Junio C Hamano --- 4eaeb3264e1f86b99ba7732d9f69039a5805c435 diff --git a/check_bindir b/check_bindir index a1c4c3e8d8..623eadcbb7 100755 --- a/check_bindir +++ b/check_bindir @@ -2,7 +2,7 @@ bindir="$1" gitexecdir="$2" gitcmd="$3" -if test "$bindir" != "$gitexecdir" -a -x "$gitcmd" +if test "$bindir" != "$gitexecdir" && test -x "$gitcmd" then echo echo "!! You have installed git-* commands to new gitexecdir."