diff --git a/convert.sh b/convert.sh index d87f043..de7e07a 100755 --- a/convert.sh +++ b/convert.sh @@ -4,17 +4,21 @@ date -if [[ -e ebook.pdf ]]; then - rm -v ebook.pdf +ebook="HyperlingHealthProtocol.pdf" + +if [[ -e $ebook ]]; then + rm -v $ebook fi pandoc ebook.md \ -s -N --toc --toc-depth=3 \ - -o ebook.pdf + -o $ebook status=$? echo "Completed with status '$status'." +du -h $ebook + date exit $status