Skip to content

Commit 192ebfe

Browse files
authored
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
1 parent f2347b7 commit 192ebfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Misc/layoutroot/run.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ rem Run.
1919
rem ********************************************************************************
2020

2121
:launch_helper
22-
copy run-helper.cmd.template run-helper.cmd /Y
22+
copy "%~dp0run-helper.cmd.template" "%~dp0run-helper.cmd" /Y
2323
call "%~dp0run-helper.cmd" %*
2424

2525
if %ERRORLEVEL% EQU 1 (
2626
echo "Restarting runner..."
2727
goto :launch_helper
2828
) else (
2929
echo "Exiting runner..."
30-
exit 0
30+
exit /b 0
3131
)

0 commit comments

Comments
 (0)