commit bf64208e3c19593405ca23556681d7b05f259b16
parent 701b1c7aa7f1e077ef9b1c221d660a2a6d9a7284
Author: William Casarin <jb55@jb55.com>
Date: Sun, 1 Nov 2020 19:36:45 -0800
fix pdfnow
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/pdfnow b/bin/pdfnow
@@ -5,13 +5,12 @@ usage () {
exit 1
}
-outfile=${1:-"$(mktemp)".pdf}
+outfile="$(mktemp)".pdf
if [ -t 0 ]; then
[ $# -eq 0 ] && usage
/home/jb55/bin/pdfsave "$1" "$outfile"
else
- outfile="$(mktemp)".pdf
ext="${1:-markdown}"
/home/jb55/bin/pdfsave "$outfile" "$ext"
fi