Print x if request unsuccessful

This commit is contained in:
Trevor Vallender 2024-09-27 14:15:36 +01:00
parent 12a09829fa
commit 60cf058e04
1 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,11 @@ do
-X $METHOD \ -X $METHOD \
-s $URL \ -s $URL \
-o /dev/null -o /dev/null
if [ $? -eq 0 ]
then
printf '%s' "." printf '%s' "."
else
printf '%s' "x"
fi
sleep $SLEEP_TIME sleep $SLEEP_TIME
done done