fix ephemeral runner upgrade on mac/linux (#1403)

This commit is contained in:
Thomas Boop
2021-10-05 04:15:19 -04:00
committed by GitHub
parent 0699597876
commit c4b6d288d4
3 changed files with 17 additions and 7 deletions

View File

@@ -43,6 +43,21 @@ else
else
sleep 5
fi
elif [[ $returnCode == 4 ]]; then
if [ ! -x "$(command -v sleep)" ]; then
if [ ! -x "$(command -v ping)" ]; then
COUNT="0"
while [[ $COUNT != 5000 ]]; do
echo "SLEEP" > /dev/null
COUNT=$[$COUNT+1]
done
else
ping -c 5 127.0.0.1 > /dev/null
fi
else
sleep 5
fi
"$DIR"/bin/Runner.Listener run $*
else
exit $returnCode
fi