Last active
February 3, 2026 20:22
-
-
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/ae55e87d589480cf6b98a6410ba53476af0939a8
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
| ## summary : wait for a http end point to become available | |
| ## keywords : bash, ready-test, http | |
| ## publish : gist | |
| ## authors : David Crosson | |
| ## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| ## 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