ratatouille/await.sh
2024-11-26 18:46:06 +01:00

12 lines
221 B
Bash
Executable file

while [[ 1 == 1 ]]; do
/bin/sleep 10
code=$(curl -o /dev/null -s -w "%{http_code}\n" 10.10.10.8)
echo "10.10.10.8 return code $code"
if [ $code = '200' ]; then
exit 0;
else
echo "retrying in 10s";
fi
done