Skip to content

Instantly share code, notes, and snippets.

@Leko
Created June 29, 2019 10:04
Show Gist options
  • Save Leko/3254ba07d8943af730c7eee549ef6e54 to your computer and use it in GitHub Desktop.
Save Leko/3254ba07d8943af730c7eee549ef6e54 to your computer and use it in GitHub Desktop.
$ ./wait-for-url.sh localhost:12345
#!/usr/bin/env bash
set -eu
URL=$1
while :
do
curl $URL > /dev/null 2>&1 && exit 0 || sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment