Browse code

Use '/latest-comic' in ucgen.sh

Jaidyn Lev authored on 2019-01-23 09:04:06
Showing 1 changed files
... ...
@@ -18,8 +18,10 @@ fi
18 18
 dir="$COLOR-$WIDTH"
19 19
 mkdir "$dir"
20 20
 
21
+last_comic="$(gendl "http://unichat-comic.com/latest-comic")"
22
+
21 23
 i=1
22
-while test $i -lt 194
24
+while test "$i" -lt "$last_comic"
23 25
 do
24 26
 	echo "Page $i..."
25 27
 	sh unichat.sh $i $WIDTH $COLOR > "$dir/$i.txt"