Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

nexus

By: a guest on Nov 23rd, 2012  |  syntax: Bash  |  size: 0.42 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. if [[ `curl -s "https://play.google.com/store/devices/details?id=nexus_4_16gb" | grep -i "coming soon"` ]]
  4. then
  5.     echo "Waiting";
  6. elif [[ `curl -s "https://play.google.com/store/devices/details?id=nexus_4_16gb" | grep -i "sold out"` ]]
  7. then
  8.    echo "Waiting";
  9. else
  10.     echo "Check the site: https://play.google.com/store/devices/details?id=nexus_4_16gb" | mail -s "Nexus" "##YOUR_EMAIL_ADDRESS_HERE##";
  11. fi