Skip to content

Instantly share code, notes, and snippets.

@holgr
Forked from AriX/gist:3173252
Created July 24, 2012 23:22
Show Gist options
  • Save holgr/3173325 to your computer and use it in GitHub Desktop.
Save holgr/3173325 to your computer and use it in GitHub Desktop.
#!/bin/bash
while true; do
if curl -silent -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25" 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewGrouping?id=29526&mt=12' | grep -i "mountain lion" ; then
echo "Available"
growlnotify -m "Mountain Lion is available" -t "App Store"
break
else
echo "Nada"
fi
sleep 120
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment