From f90202ea4c140a0f18564749938475a727296ce9 Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Wed, 27 Mar 2024 17:32:34 +0000 Subject: [PATCH] more logs! --- create_book.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/create_book.sh b/create_book.sh index ee18349..af9758e 100644 --- a/create_book.sh +++ b/create_book.sh @@ -1,8 +1,9 @@ #!/bin/bash -echo "execute a bash script that will create a book called " $1 -echo "from a file called" $2 +echo "create_book.sh: execute a bash script that will create a book called " $1 +echo "create_book.sh: from a file called" $2 + index=$(shuf -i 1-14 -n 1) -echo $index +echo "create_book.sh: using cover image" $index pandoc $2 -o /home/xpub/www/html/tl-dr/logged_book.epub -c print.css --metadata title="$1" --metadata author="/var/shelf" --epub-cover-image=assets/cover$index.jpg --epub-embed-font="fonts/Cascadia/ttf/CascadiaCode-Light.ttf" --epub-embed-font="fonts/Ductus/DuctusRegular.otf" cp /home/xpub/www/html/tl-dr/logged_book.epub /home/xpub/www/html/tl-dr/log-books/"$1".epub