summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/comics/cyanide1
-rwxr-xr-xbin/comics/extrafabulous2
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