Modified markdown2pdf to check that input file exists and is readable,
and error exit if not.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@103 788f1e2b-df1e-0410-8736-df70ead52e1b
commitd5d81b0b53174143fa19e17bf77c0d55b9a90d7a
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateWed 15 Nov 2006, 04:47 (20 years ago)
parent8c888ea
markdown2pdf+5
@@ -60,6 +60,11 @@ done
6060
6161infile=$1
6262
63+if ! [ -r $infile ]; then
64+ echo >&2 "'$infile' not found"
65+ exit 1
66+fi
67+
6368if [ $# -gt 1 ]; then
6469 shift
6570 echo >&2 "Warning: extra arguments '$@' will be ignored!"