Skip to content

Commit aa23144

Browse files
authored
Don't use where, it doesn't exist on XP (GH-3330)
1 parent 7daa45d commit aa23144

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PCbuild/get_externals.bat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ if "%DO_FETCH%"=="false" goto end
3232
if "%ORG%"=="" (set ORG=python)
3333
call "%PCBUILD%find_python.bat" "%PYTHON%"
3434

35-
if "%PYTHON%"=="" (
36-
where /Q git || echo Python 3.6 could not be found or installed, and git.exe is not on your PATH && exit /B 1
35+
git 2>&1 > nul
36+
if ERRORLEVEL 9009 (
37+
if "%PYTHON%"=="" (
38+
echo Python 3.6 could not be found or installed, and git.exe is not on your PATH && exit /B 1
39+
)
3740
)
3841

3942
echo.Fetching external libraries...

0 commit comments

Comments
 (0)