pass variable to sh script
parent
abcb6c9661
commit
a4fe49aef5
@ -1,9 +1,7 @@
|
||||
#!/bin/bash
|
||||
today=`date '+%B_%dth_%Y'`;
|
||||
filename="TD;DR_$today"
|
||||
echo $filename;
|
||||
echo "execute a bash script that will create a book called " + $1
|
||||
|
||||
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 --epub-cover-image=cover.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
|
||||
|
||||
pandoc /home/xpub/www/html/tl-dr/book.html -o /home/xpub/www/html/tl-dr/logged_book.epub -c print.css --metadata title=$filename --epub-cover-image=cover.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/$filename.epub
|
||||
echo "did the overwrite"
|
||||
ls log-books > /home/xpub/www/html/tl-dr/log-books/all.txt
|
||||
|
Loading…
Reference in New Issue