aboutsummaryrefslogtreecommitdiff
path: root/pdfs/toPDF.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-05-08 00:14:42 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2020-05-08 00:14:42 +0200
commit0e4c711947a42f851a0625bb7215e2260de9e65e (patch)
tree078d5d089dd51406c65c5def8ab054020bbb955b /pdfs/toPDF.sh
parent4919a7bceea7ce4975fbd9d85c3d4a34697e7b6c (diff)
downloadscripts-0e4c711947a42f851a0625bb7215e2260de9e65e.tar.gz
scripts-0e4c711947a42f851a0625bb7215e2260de9e65e.zip
Added a log file for toPDF.sh.
Diffstat (limited to 'pdfs/toPDF.sh')
-rwxr-xr-xpdfs/toPDF.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdfs/toPDF.sh b/pdfs/toPDF.sh
index a383c09..ac390a7 100755
--- a/pdfs/toPDF.sh
+++ b/pdfs/toPDF.sh
@@ -22,5 +22,6 @@ targetFile="${targetDir}/${sourceFile##*/}"
targetFile="${targetFile%.*}.pdf"
[ -d "$targetDir" ] || mkdir -p "$targetDir"
-pandoc "$sourceFile" -o "$targetFile"
+pandoc "$sourceFile" -o "$targetFile" > ~/logs/toPDF.log
[ -n "$open" ] && "$READER" "$targetFile" &
+