mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
* fix: use Git Bash for Windows local startup * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
21 lines
502 B
Batchfile
21 lines
502 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "bash_exe="
|
|
|
|
for /f "delims=" %%I in ('where git 2^>NUL') do (
|
|
if exist "%%~dpI..\bin\bash.exe" (
|
|
set "bash_exe=%%~dpI..\bin\bash.exe"
|
|
goto :found_bash
|
|
)
|
|
)
|
|
|
|
echo Could not locate Git for Windows Bash ("..\bin\bash.exe" relative to git on PATH). Ensure Git for Windows is installed and that git and bash.exe are available on PATH.
|
|
exit /b 1
|
|
|
|
:found_bash
|
|
echo Detected Windows - using Git Bash...
|
|
"%bash_exe%" %*
|
|
set "cmd_rc=%ERRORLEVEL%"
|
|
exit /b %cmd_rc%
|