Use '/latest-comic' in ucgen.sh

This commit is contained in:
Jaidyn Lev 2019-01-23 03:04:06 -06:00
parent 6f3b588671
commit 1de3a1f048

View File

@ -18,8 +18,10 @@ fi
dir="$COLOR-$WIDTH" dir="$COLOR-$WIDTH"
mkdir "$dir" mkdir "$dir"
last_comic="$(gendl "http://unichat-comic.com/latest-comic")"
i=1 i=1
while test $i -lt 194 while test "$i" -lt "$last_comic"
do do
echo "Page $i..." echo "Page $i..."
sh unichat.sh $i $WIDTH $COLOR > "$dir/$i.txt" sh unichat.sh $i $WIDTH $COLOR > "$dir/$i.txt"