Last active
August 29, 2015 14:22
-
-
Save vurpo/978e91310c569dc35f7f to your computer and use it in GitHub Desktop.
Pebble Time Kickstarter Portal checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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