1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-06 00:53:23 +00:00

Check for lunch menu of Altes Europa

This commit is contained in:
Holger Just 2012-02-09 11:47:58 +01:00
parent 8029e1836c
commit f084d79ef1

2
bin/alteseuropa Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
curl --silent -I http://www.strandbar-mitte.de/alteseuropa/download/Mittagskarte.pdf | grep Last-Modified | grep -o ' .*' | ruby -rdate -pe '$_ = DateTime.parse($_).day == Date.today.day; exit($_ ? 0 : 1)' && curl http://www.strandbar-mitte.de/alteseuropa/download/Mittagskarte.pdf --silent -o /tmp/mittagskarte.pdf && open /tmp/mittagskarte.pdf || echo 'Noch nicht da'