summaryrefslogtreecommitdiffstats
path: root/bin/comics/cyanide
diff options
context:
space:
mode:
Diffstat (limited to 'bin/comics/cyanide')
-rwxr-xr-xbin/comics/cyanide1
1 files changed, 1 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