mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
Use better exit codes and comparison (#1708)
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user