From e7c55cbde4901206778f2888aa7d3ec06580487e Mon Sep 17 00:00:00 2001 From: Cristian Prieto Date: Fri, 3 Apr 2020 12:02:37 +0200 Subject: [PATCH] Use git bash from Scoop - If git is installed through Scoop and not with the normal git installer it will fail - Detects git installed with scoop and sets the path to this bash executable if present --- CloneRepositories.cmd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CloneRepositories.cmd b/CloneRepositories.cmd index 43df77d..83c62c6 100644 --- a/CloneRepositories.cmd +++ b/CloneRepositories.cmd @@ -6,6 +6,9 @@ if not "%1"=="" set REPOS=%1 set TYPE="full" if not "%2"=="" set TYPE=%2 +set BASH="%USERPROFILE%\scoop\apps\git\current\bin\bash.exe" +if exist %BASH% goto EXECUTE + set BASH="%PROGRAMFILES%\Git\bin\bash.exe" if exist %BASH% goto EXECUTE