From 8eaef0e46ad8addaca679df8ae1597a626ed5579 Mon Sep 17 00:00:00 2001 From: Martin Weismann Date: Fri, 8 Mar 2019 13:16:05 +0100 Subject: [PATCH] Update MarkdownToPDF generation --- markdownToPDF/install_wkhtmltopdf.sh | 2 +- markdownToPDF/mdToPDF.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/markdownToPDF/install_wkhtmltopdf.sh b/markdownToPDF/install_wkhtmltopdf.sh index f06ce5b..88ee5b1 100755 --- a/markdownToPDF/install_wkhtmltopdf.sh +++ b/markdownToPDF/install_wkhtmltopdf.sh @@ -26,4 +26,4 @@ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz tar vxf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz cp wkhtmltox/bin/wkhtmltopdf . -chmod a+x wkhtmltopdf +chmod a+x wkhtmltopdf \ No newline at end of file diff --git a/markdownToPDF/mdToPDF.sh b/markdownToPDF/mdToPDF.sh index 026df36..331835b 100755 --- a/markdownToPDF/mdToPDF.sh +++ b/markdownToPDF/mdToPDF.sh @@ -23,6 +23,9 @@ #!/bin/bash +mkdir ~/.grip +echo "PASSWORD = '${GITHUB_API_KEY}'" > ~/.grip/settings.py + FILE="$1" TMPFILE="temp.html" @@ -34,9 +37,12 @@ sed -i 's|