Last active
December 23, 2015 08:59
-
-
Save jmaziarz/6611885 to your computer and use it in GitHub Desktop.
iOS7 checker with support for Notification Center on Mountain Lion
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
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 |
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 | |
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