Skip to content

Instantly share code, notes, and snippets.

@releu
Forked from AriX/mountainlion.sh
Created July 25, 2012 11:59
Show Gist options
  • Save releu/3175788 to your computer and use it in GitHub Desktop.
Save releu/3175788 to your computer and use it in GitHub Desktop.
Script to check for Mac OS X 10.8 Mountain Lion
#!/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/viewMultiRoom?fcId=489264329&mt=12&s=143461' | grep -i "mountain lion" ; then
echo "Hello, Kitty"
say "MOUNTAIN LION IS AVAILABLE"
break
else
echo "Nope"
fi
sleep 120
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment