diff options
author | Phillip Berndt <pberndt@spline.de> | 2015-02-02 08:20:02 +0100 |
---|---|---|
committer | Phillip Berndt <pberndt@spline.de> | 2015-05-20 09:33:12 +0200 |
commit | db3cf50e15f85452a71d9e321c459ac1a5642aef (patch) | |
tree | 1b5c9cafeb38467572f9b07e53259d1ea8f0f72c | |
parent | 30e46a7e37342d9c3e67d93018afbaefc37f6180 (diff) | |
download | comics-db3cf50e15f85452a71d9e321c459ac1a5642aef.tar.gz comics-db3cf50e15f85452a71d9e321c459ac1a5642aef.tar.bz2 comics-db3cf50e15f85452a71d9e321c459ac1a5642aef.zip |
Keine temporären Verzeichnisse mehr übrig lassen
(Danke marian!)
-rwxr-xr-x | bin/comics/cyanide | 1 | ||||
-rwxr-xr-x | bin/comics/extrafabulous | 2 |
2 files changed, 3 insertions, 0 deletions
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}.+</table>" | 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#.*<img src="(http://extrafabulouscomics.com if [ -z $URL ]; then echo "Comic URL nicht gefunden!!" + rm -rf "${tmp}" exit 1 fi echo Comic URL $URL |