Skip to content

Instantly share code, notes, and snippets.

@vurpo
Last active August 29, 2015 14:22
Show Gist options
  • Save vurpo/978e91310c569dc35f7f to your computer and use it in GitHub Desktop.
Save vurpo/978e91310c569dc35f7f to your computer and use it in GitHub Desktop.
Pebble Time Kickstarter Portal checker
#!/bin/bash
if [ $(curl -sS -c cookiejar -L https://LINK_TO_PORTAL_FROM_THE_EMAIL_HERE | tac | sed -rne "s/.+"time_tracking_number":(.+),"time_tracking_url.+/\1/p") != "null" ]
then
pb -a "There's a tracking number now (or maybe the script just failed)"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment