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