From c6cd1643d06e63912b34bb642b3ab49e4ca12955 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sat, 30 May 2020 05:14:45 +0530 Subject: [PATCH] Adds chapters 9 and 10 --- generate.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate.sh b/generate.sh index 489a08c..37e1243 100755 --- a/generate.sh +++ b/generate.sh @@ -10,8 +10,10 @@ wget https://www.theickabog.com/daisy-dovetail/ -O ch5.html wget https://www.theickabog.com/the-fight-in-the-courtyard/ -O ch6.html wget https://www.theickabog.com/lord-spittleworth-tells-tales/ -O ch7.html wget https://www.theickabog.com/the-day-of-petition/ -O ch8.html +wget https://www.theickabog.com/the-shepherds-story/ -O ch9.html +wget https://www.theickabog.com/king-freds-quest/ -O ch10.html -for i in $(seq 1 8); do +for i in $(seq 1 10); do CHAPTER_TITLE=$(cat "ch$i.html" | pup 'h1.entry-title:nth-child(2) text{}') echo "

$CHAPTER_TITLE

" >> "$HTML_FILE" cat "ch$i.html" | pup 'article div.row:nth-child(2) div.entry-content' >> "$HTML_FILE"