old-dotfiles/bin/md2pdf

6 lines
126 B
Bash
Executable File

#!/bin/sh
MDFILE="$1"
[ -r $MDFILE -a -f $MDFILE ] && pandoc $MDFILE -t html -o ${MDFILE[@]/%md/pdf} || echo "what a freak"