From 6b0f0c00b1b270b7828a6da63d7294f487b195d1 Mon Sep 17 00:00:00 2001 From: Denis Baryshev Date: Fri, 5 Feb 2021 06:12:55 +0300 Subject: [PATCH] use correct exit code and delay on runner update in run.sh (#963) Fix runner update script --- src/Misc/layoutroot/run.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Misc/layoutroot/run.sh b/src/Misc/layoutroot/run.sh index 827290ec4..c5d76bc34 100755 --- a/src/Misc/layoutroot/run.sh +++ b/src/Misc/layoutroot/run.sh @@ -26,10 +26,10 @@ if [[ "$1" == "localRun" ]]; then else "$DIR"/bin/Runner.Listener run $* -# Return code 4 means the run once runner received an update message. -# Sleep 5 seconds to wait for the update process finish and run the runner again. +# Return code 3 means the run once runner received an update message. +# Sleep 5 seconds to wait for the update process finish returnCode=$? - if [[ $returnCode == 4 ]]; then + if [[ $returnCode == 3 ]]; then if [ ! -x "$(command -v sleep)" ]; then if [ ! -x "$(command -v ping)" ]; then COUNT="0" @@ -43,8 +43,6 @@ else else sleep 5 >nul fi - - "$DIR"/bin/Runner.Listener run $* else exit $returnCode fi