diff options
Diffstat (limited to 'bin/comics/extrafabulous')
-rwxr-xr-x | bin/comics/extrafabulous | 2 |
1 files changed, 2 insertions, 0 deletions
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 |