From 192ebfeccf1ae211fef73c3f2f405118e3d714f9 Mon Sep 17 00:00:00 2001 From: jeremyd2019 Date: Wed, 2 Feb 2022 03:09:13 -0800 Subject: [PATCH] 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 --- src/Misc/layoutroot/run.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Misc/layoutroot/run.cmd b/src/Misc/layoutroot/run.cmd index cd5cb6897..692b38f9b 100644 --- a/src/Misc/layoutroot/run.cmd +++ b/src/Misc/layoutroot/run.cmd @@ -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 )