Created
June 1, 2016 15:25
-
-
Save fvigotti/c210623b07ba16391c5491ccd174817d to your computer and use it in GitHub Desktop.
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
#credits : https://raw.githubusercontent.com/meteorhacks/kube-init/master/kube-init.sh | |
waitFor() { | |
cmd=$1 | |
while [ 1 ]; do | |
ok=$(eval $cmd) | |
if [ "$ok" ]; then | |
break | |
fi | |
sleep 1 | |
done | |
} | |
# usage sample : | |
waitFor "wget -qO- http://127.0.0.1:4001/version | grep etcd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment