Skip to content

Commit

Permalink
Fixes build script failing properly on windows. (tgstation#57623)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnturK authored Mar 11, 2021
1 parent cc388dc commit 3d19fd4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/bootstrap/node.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if %errorlevel% == 0 (
echo | set /p printed_str="Using system-wide Node "
call node.exe --version
call node.exe %*
exit /b %errorlevel%
goto exit_with_last_error_level
)
call powershell -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" Download-Node
for /f "tokens=* USEBACKQ" %%s in (`
Expand All @@ -17,7 +17,10 @@ if %errorlevel% == 0 (
echo | set /p printed_str="Using vendored Node "
call node.exe --version
call node.exe %*
exit /b %errorlevel%
goto exit_with_last_error_level
)
echo "build.bat: Failed to bootstrap Node!"
exit /b 1
%COMSPEC% /c exit 1

:exit_with_last_error_level
if not %errorlevel% == 0 %COMSPEC% /c exit %errorlevel% >nul

0 comments on commit 3d19fd4

Please sign in to comment.