Skip to content

Commit

Permalink
Use git bash from Scoop
Browse files Browse the repository at this point in the history
 - 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
  • Loading branch information
cprieto authored and dlemstra committed Apr 3, 2020
1 parent 5bca30b commit e7c55cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CloneRepositories.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e7c55cb

Please sign in to comment.