pass path as var
parent
eb9878cf44
commit
62b3546e62
@ -1,9 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "execute a bash script that will create a book called " $1
|
echo "execute a bash script that will create a book called " $1
|
||||||
|
echo "from a file called" $2
|
||||||
index=$(shuf -i 1-14 -n 1)
|
index=$(shuf -i 1-14 -n 1)
|
||||||
echo $index
|
echo $index
|
||||||
|
|
||||||
pandoc /home/xpub/www/html/tl-dr/book.html -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"
|
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
|
cp /home/xpub/www/html/tl-dr/logged_book.epub /home/xpub/www/html/tl-dr/log-books/"$1".epub
|
||||||
|
|
||||||
ls log-books > /home/xpub/www/html/tl-dr/log-books/all.txt
|
ls log-books > /home/xpub/www/html/tl-dr/log-books/all.txt
|
||||||
|
Loading…
Reference in New Issue