Use better exit codes and comparison (#1708)

This commit is contained in:
Ferenc Hammerl
2022-02-24 21:10:52 +01:00
committed by GitHub
parent ec9830836b
commit 6abef8199f
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ while :;
do
"$DIR"/run-helper.sh $*
returnCode=$?
if [[ $returnCode == 1 ]]; then
if [[ $returnCode -eq 2 ]]; then
echo "Restarting runner..."
else
echo "Exiting runner..."