git.iko.soy/typeable/pandoc
on master help sign in
Modified markdown2pdf to check that input file exists and is readable,
d5d81b0fiddlosopher
markdown2pdf+5
@@ -60,6 +60,11 @@ done
60
60
61infile=$1
61infile=$1
62
62
63+if ! [ -r $infile ]; then
64+ echo >&2 "'$infile' not found"
65+ exit 1
66+fi
67+
63if [ $# -gt 1 ]; then
68if [ $# -gt 1 ]; then
64 shift
69 shift
65 echo >&2 "Warning: extra arguments '$@' will be ignored!"
70 echo >&2 "Warning: extra arguments '$@' will be ignored!"