Skip to content

Instantly share code, notes, and snippets.

@jmaziarz
Last active December 23, 2015 08:59
Show Gist options
  • Save jmaziarz/6611885 to your computer and use it in GitHub Desktop.
Save jmaziarz/6611885 to your computer and use it in GitHub Desktop.
iOS7 checker with support for Notification Center on Mountain Lion
1. Download and install terminal-notifier from https://github.com/alloy/terminal-notifier/downloads
2. Put the iOS7 checker script somewhere in your home directory
3. Activate cron on MacOS
$ [sudo] touch /etc/crontab
4. Install the crontab
*/10 * * * * /PATH/TO/SCRIPT/ios7checker.sh
#!/bin/bash
curl -s -L http://phobos.apple.com/version | grep -i Restore | grep -i iPhone | grep -i iOS7
if [ $? -eq 1 ]
then
terminal-notifier -title "iOS7 Checker" -message "Nothing yet..." -subtitle "Next check in 10 minutes"
else
terminal-notifier -title "iOS7 Checker" -message "iOS7 is available!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment