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"