From d9978a684366939a7e0682f7054ceda46e8b83ad Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sat, 11 Aug 2007 19:32:40 +0200 Subject: [PATCH] GitMe: check if cygwin is in PATH; if so abort installer. The installer may have problems if cygwin is in the system PATH. If cygpath is known to the installation shell, the installer will abort before starting the installation. Signed-off-by: Steffen Prohaska Signed-off-by: Dmitry Kakurin --- share/GitMe/setup-msysgit.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/share/GitMe/setup-msysgit.sh b/share/GitMe/setup-msysgit.sh index 386003d417..b89a16d28c 100644 --- a/share/GitMe/setup-msysgit.sh +++ b/share/GitMe/setup-msysgit.sh @@ -12,7 +12,27 @@ error () { exit 1 } +echo ------------------------------------------------------- +echo Checking environment +echo ------------------------------------------------------- +type cygpath >/dev/null 2>/dev/null && { + echo "Cygwin seems to be in your system path. This was detected" + echo "by trying to run cygpath, which was found by this shell." + echo "" + echo "Cygwin may cause severe problems, like crashes, if used in" + echo "combination with msysgit. Please remove Cygwin from you system" + echo "PATH environment variable." + echo "" + echo "For assistance on how to control your environment variables" + echo "you should consult Microsoft's knowlege base:" + echo " Windows XP: http://support.microsoft.com/kb/310519" + echo " Windows NT: http://support.microsoft.com/kb/100843" + echo "" + error "Can not install msysgit when Cygwin is in PATH." +} +echo "Environment is clean. Can install msysgit." +echo echo ------------------------------------------------------- echo Fetching the latest MSys environment echo ------------------------------------------------------- -- 2.11.4.GIT