From db3cf50e15f85452a71d9e321c459ac1a5642aef Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Mon, 2 Feb 2015 08:20:02 +0100 Subject: =?UTF-8?q?Keine=20tempor=C3=A4ren=20Verzeichnisse=20mehr=20=C3=BC?= =?UTF-8?q?brig=20lassen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Danke marian!) --- bin/comics/cyanide | 1 + bin/comics/extrafabulous | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bin/comics/cyanide b/bin/comics/cyanide index 813d17c..cb20267 100755 --- a/bin/comics/cyanide +++ b/bin/comics/cyanide @@ -22,6 +22,7 @@ day=`date -d "$daysago days ago 00:00:00" +%d` part=`curl -s "http://explosm.net/comics/archive/$year/" | grep -oE "${month}.+" | sed -nre "s#.+href=\"([^\"]+)\">[^/]+${day}<.+#\1#p"` if [ -z "$part" ]; then echo "Cyanide and Happyness: Kein Comic für $year, $month $day" + rm -rf "${tmp}" exit fi diff --git a/bin/comics/extrafabulous b/bin/comics/extrafabulous index 9b70f78..46f1604 100755 --- a/bin/comics/extrafabulous +++ b/bin/comics/extrafabulous @@ -21,6 +21,7 @@ URL=$(wget "http://extrafabulouscomics.com/feed/" -O - | sed -n -re "/pubDate.+$ if [ -z $URL ]; then echo "Nichts gefunden für $DATE" + rm -rf "${tmp}" exit 0 fi echo URL $URL gefunden @@ -29,6 +30,7 @@ URL=$(wget -O - "$URL" | sed -nre 's#.*