summaryrefslogtreecommitdiffstats
path: root/bin/comics/cyanide
diff options
context:
space:
mode:
authorPhillip Berndt <pberndt@fob.spline.inf.fu-berlin.de>2016-06-28 14:50:49 +0200
committerPhillip Berndt <pberndt@fob.spline.inf.fu-berlin.de>2016-06-28 14:50:49 +0200
commit597527698d9bc2d52e05b4335c5f7cc52867c306 (patch)
tree76f0653f4221d2bf9c404914f521a3d9b33343db /bin/comics/cyanide
parent468e973630cb1114b52327922915fea2d177c3f2 (diff)
downloadcomics-597527698d9bc2d52e05b4335c5f7cc52867c306.tar.gz
comics-597527698d9bc2d52e05b4335c5f7cc52867c306.tar.bz2
comics-597527698d9bc2d52e05b4335c5f7cc52867c306.zip
Fixed several comics
Diffstat (limited to 'bin/comics/cyanide')
-rwxr-xr-xbin/comics/cyanide2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/comics/cyanide b/bin/comics/cyanide
index 969a44d..90e536d 100755
--- a/bin/comics/cyanide
+++ b/bin/comics/cyanide
@@ -19,7 +19,7 @@ year=`date -d "$daysago days ago 00:00:00" +%Y`
month=`date -d "$daysago days ago 00:00:00" +%m`
day=`date -d "$daysago days ago 00:00:00" +%d`
-part=`curl -s "http://explosm.net/comics/archive/$year/$month" | sed -nre "s#.+/comics/([0-9]+)\">$year.$month.$day.+#\1#p"`
+part=`curl -s "http://explosm.net/comics/archive/$year/$month" | sed -nre "s#.+/comics/([0-9]+)/?\">$year.$month.$day.+#\1#p"`
if [ -z "$part" ]; then
echo "Cyanide and Happyness: Kein Comic für $year, $month $day"
rm -rf "${tmp}"