Created
August 5, 2023 20:41
-
-
Save alirezapla/39109b7d403ebb04307dd8858341707d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
status=$(curl -I $1 2>/dev/null | head -n 1 | cut -d$' ' -f2) | |
while [ $status -ne 200 ]; | |
do | |
echo ret is: [$status] | |
status=$(curl -I $1 2>/dev/null | head -n 1 | cut -d$' ' -f2) | |
done | |
echo ret is: [$status] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment