mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
fix run.cmd script (#1633)
Restore ability to run run.cmd from directories other than the runner root, and fix it exiting the cmd that's running it. Fixes #1632
This commit is contained in:
@@ -19,7 +19,7 @@ rem Run.
|
||||
rem ********************************************************************************
|
||||
|
||||
:launch_helper
|
||||
copy run-helper.cmd.template run-helper.cmd /Y
|
||||
copy "%~dp0run-helper.cmd.template" "%~dp0run-helper.cmd" /Y
|
||||
call "%~dp0run-helper.cmd" %*
|
||||
|
||||
if %ERRORLEVEL% EQU 1 (
|
||||
@@ -27,5 +27,5 @@ if %ERRORLEVEL% EQU 1 (
|
||||
goto :launch_helper
|
||||
) else (
|
||||
echo "Exiting runner..."
|
||||
exit 0
|
||||
exit /b 0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user