Created
September 1, 2015 01:09
-
-
Save cp16net/1b047f5e366390f5a972 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| while true; do | |
| wget https://cloud-images.ubuntu.com/trusty/current/SHA256SUMS | |
| RETVAL=$? | |
| if [ $RETVAL -eq 0 ]; then | |
| echo "good" | |
| notify-send "image is working again!" | |
| break | |
| else | |
| echo "bad" | |
| fi | |
| sleep 60 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment