Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created October 12, 2011 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jerodsanto/1281271 to your computer and use it in GitHub Desktop.
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.
#!/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
@bostonaholic
Copy link

This is awesome! Just copied this script and I have it running now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment