Created
September 22, 2016 10:48
-
-
Save jenkoian/4ed2f45062e934de79fc9d5bd2363a69 to your computer and use it in GitHub Desktop.
Is it done yet?
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
status=$(curl -L -s -o /dev/null -w "%{http_code}" "http://url/to/check"); | |
if [ "200" == "${status}" ]; then say -v "Good News" "ALL DONE YO!"; elif [ "502" == "${status}" ]; then say -v Whisper "Still Fucked"; else say -v "Bad News" "Not yet"; fi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brew install watch
watch -cn1 ./done-yet.sh