mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +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 ********************************************************************************
|
rem ********************************************************************************
|
||||||
|
|
||||||
:launch_helper
|
:launch_helper
|
||||||
copy run-helper.cmd.template run-helper.cmd /Y
|
copy "%~dp0run-helper.cmd.template" "%~dp0run-helper.cmd" /Y
|
||||||
call "%~dp0run-helper.cmd" %*
|
call "%~dp0run-helper.cmd" %*
|
||||||
|
|
||||||
if %ERRORLEVEL% EQU 1 (
|
if %ERRORLEVEL% EQU 1 (
|
||||||
@@ -27,5 +27,5 @@ if %ERRORLEVEL% EQU 1 (
|
|||||||
goto :launch_helper
|
goto :launch_helper
|
||||||
) else (
|
) else (
|
||||||
echo "Exiting runner..."
|
echo "Exiting runner..."
|
||||||
exit 0
|
exit /b 0
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user