mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
![Elia Pinto](/assets/img/avatar_default.png)
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>
14 lines
374 B
Bash
Executable file
14 lines
374 B
Bash
Executable file
#!/bin/sh
|
|
bindir="$1"
|
|
gitexecdir="$2"
|
|
gitcmd="$3"
|
|
if test "$bindir" != "$gitexecdir" && test -x "$gitcmd"
|
|
then
|
|
echo
|
|
echo "!! You have installed git-* commands to new gitexecdir."
|
|
echo "!! Old version git-* commands still remain in bindir."
|
|
echo "!! Mixing two versions of Git will lead to problems."
|
|
echo "!! Please remove old version commands in bindir now."
|
|
echo
|
|
fi
|