Skip to content

Instantly share code, notes, and snippets.

@kakashysen
Created June 13, 2016 23:24
Show Gist options
  • Select an option

  • Save kakashysen/f185900334aeab1966a5df170fb4094b to your computer and use it in GitHub Desktop.

Select an option

Save kakashysen/f185900334aeab1966a5df170fb4094b to your computer and use it in GitHub Desktop.
Notify when apple developers site it's ready
loop=0
while [ $loop -eq 0 ]
do
ready=`curl -s http://devimages.apple.com/maintenance#/overview/KVANJVKSA4 | grep -i "back soon." | wc -l`
if [ "$ready" -eq 0 ]; then
osascript -e 'tell app "Finder" to display dialog "Apple Developer Site it is ready"'
let loop=1
fi
sleep 5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment