Last active
April 2, 2023 10:11
-
-
Save dacr/ad9517409a48e19f254d2081f06936ee to your computer and use it in GitHub Desktop.
wait for a http end point to become available / published by https://github.com/dacr/code-examples-manager #34ad7ddf-c588-435f-aa32-9a65f22678d6/f5ef06dc1e1187cb8de2f86880adfb3848a3ac1a
This file contains 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
## summary : wait for a http end point to become available | |
## keywords : bash, ready-test, http | |
## publish : gist | |
## authors : David Crosson | |
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
## id : 34ad7ddf-c588-435f-aa32-9a65f22678d6 | |
## created-on : 2020-11-05T08:47:36+01:00 | |
## managed-by : https://github.com/dacr/code-examples-manager | |
URL=${$1:-http://127.0.0.1:80} | |
while ! $(curl --noproxy '*' --silent --fail --output /dev/null $URL) ; do | |
echo "$(date) Waiting" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment