Created
October 12, 2011 13:50
-
-
Save jerodsanto/1281271 to your computer and use it in GitHub Desktop.
Siri, tell me when iOS 5 is available. Nothing? Fine. Bash, you do it.
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
#!/bin/bash | |
while : | |
do | |
echo "Checking for iOS 5: `date`" | |
result=`curl -s -L http://phobos.apple.com/version | grep Restore | grep iPhone | grep 5.0` | |
if [ -z "$result" ]; then | |
echo "Nothing yet..." | |
else | |
say "I O S 5 IS NOW AVAILABLE. GO GET YOUR DOWNLOAD ON, KID" | |
fi | |
sleep 30 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is awesome! Just copied this script and I have it running now!