Skip to content

Instantly share code, notes, and snippets.

@visnup
Forked from visnup/statebird
Created November 2, 2012 18:00
Show Gist options
  • Save visnup/4003210 to your computer and use it in GitHub Desktop.
Save visnup/4003210 to your computer and use it in GitHub Desktop.
check state bird provisions for availability
#!/bin/sh
# state bird provisions never has a reservation open. I hate having to go to their website to
# check. this checks for me.
curl -s 'http://rez.urbanspoon.com/b/widget/2086?use_calendar=0' | fgrep "'availableDates': []" > /dev/null && echo 'nothing' || (echo 'omg! available reservations!' && open 'http://statebirdsf.com/reservations/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment