From 1de3a1f04852cc4b79904389f0d44a9a8eb8cce7 Mon Sep 17 00:00:00 2001 From: Jaidyn Lev Date: Wed, 23 Jan 2019 03:04:06 -0600 Subject: [PATCH] Use '/latest-comic' in ucgen.sh --- ucgen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ucgen.sh b/ucgen.sh index 409640f..8314cae 100644 --- a/ucgen.sh +++ b/ucgen.sh @@ -18,8 +18,10 @@ fi dir="$COLOR-$WIDTH" mkdir "$dir" +last_comic="$(gendl "http://unichat-comic.com/latest-comic")" + i=1 -while test $i -lt 194 +while test "$i" -lt "$last_comic" do echo "Page $i..." sh unichat.sh $i $WIDTH $COLOR > "$dir/$i.txt"