From 42df6cd05b2e69352773990a789cf776f60136e5 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Sat, 19 Nov 2022 02:32:02 +0000 Subject: [PATCH] fix git bash GIT_INSTALL_ROOT --- vendor/cmder.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/cmder.sh b/vendor/cmder.sh index 4074346..8467593 100644 --- a/vendor/cmder.sh +++ b/vendor/cmder.sh @@ -33,11 +33,11 @@ CMDER_ROOT=$(echo $CMDER_ROOT | sed 's:/*$::') export CMDER_ROOT -if [ -d "/c/Program Files/Git" ] ; then +if [ -f "/c/Program Files/Git/cmd/git.exe" ] ; then GIT_INSTALL_ROOT="/c/Program Files/Git" -elif [ -d "/c/Program Files(x86)/Git" ] ; then +elif [ -f "/c/Program Files(x86)/Git/cmd/git.exe" ] ; then GIT_INSTALL_ROOT="/c/Program Files(x86)/Git" -elif [ -d "${CMDER_ROOT}/vendor/git-for-windows" ] ; then +elif [ -f "${CMDER_ROOT}/vendor/git-for-windows/cmd/git.exe" ] ; then GIT_INSTALL_ROOT=${CMDER_ROOT}/vendor/git-for-windows fi