old-dotfiles/bin/md2pdf

6 lines
126 B
Plaintext
Raw Normal View History

2023-04-18 09:55:20 +02:00
#!/bin/sh
MDFILE="$1"
[ -r $MDFILE -a -f $MDFILE ] && pandoc $MDFILE -t html -o ${MDFILE[@]/%md/pdf} || echo "what a freak"