diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2020-05-08 00:14:42 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2020-05-08 00:14:42 +0200 |
commit | 0e4c711947a42f851a0625bb7215e2260de9e65e (patch) | |
tree | 078d5d089dd51406c65c5def8ab054020bbb955b /pdfs/toPDF.sh | |
parent | 4919a7bceea7ce4975fbd9d85c3d4a34697e7b6c (diff) | |
download | scripts-0e4c711947a42f851a0625bb7215e2260de9e65e.tar.gz scripts-0e4c711947a42f851a0625bb7215e2260de9e65e.zip |
Added a log file for toPDF.sh.
Diffstat (limited to 'pdfs/toPDF.sh')
-rwxr-xr-x | pdfs/toPDF.sh | 3 |
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" & + |