Skip to content

Commit 7574efa

Browse files
committed
WIP: run a copy of the helper so it's safe to update
1 parent 24f70b7 commit 7574efa

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Misc/layoutbin/run-helper.cmd src/Misc/layoutroot/run-helper.cmd.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
"%~dp0Runner.Listener.exe" run %*
3+
"%~dp0\bin\Runner.Listener.exe" run %*
44

55
rem using `if %ERRORLEVEL% EQU N` insterad of `if ERRORLEVEL N`
66
rem `if ERRORLEVEL N` means: error level is N or MORE

src/Misc/layoutroot/run.cmd

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

2121
:launch_helper
22-
call "%~dp0bin\run-helper.cmd" %*
22+
copy run-helper.cmd.template run-helper.cmd /Y
23+
call "%~dp0run-helper.cmd" %*
2324

2425
rem using `if %ERRORLEVEL% EQU N` insterad of `if ERRORLEVEL N`
2526
rem `if ERRORLEVEL N` means: error level is N or MORE
2627

2728
if %ERRORLEVEL% EQU 1 (
28-
echo "Restart runner after it exited with return code '%ERRORLEVEL%'"
29+
echo "Restarting runner..."
2930
goto :launch_helper
3031
) else (
3132
echo "Exit runner after it exited with return code '%ERRORLEVEL%'"

src/Misc/layoutroot/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ do
1616
"$DIR"/bin/run-helper.sh $*
1717
returnCode=$?
1818
if [[ $returnCode -e 1 ]]; then
19-
echo "Restart runner after it updated..."
19+
echo "Restarting runner..."
2020
else
2121
echo "Exiting runner..."
2222
exit 0

0 commit comments

Comments
 (0)