Minor changes to markdown2pdf: removed an unnecessary '|| exit $?',

and made sure error output goes to stderr.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@475 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
fiddlosopher 2007-01-09 06:11:29 +00:00
parent 458bb40989
commit 8adb142720

View file

@ -10,7 +10,7 @@ SYNOPSIS="converts markdown-formatted text to PDF, using pdflatex."
texname=output
logfile=$THIS_TEMPDIR/log
pandoc -s -r markdown -w latex "$@" -o $THIS_TEMPDIR/$texname.tex || exit $?
pandoc -s -r markdown -w latex "$@" -o $THIS_TEMPDIR/$texname.tex
if [ "$OUTPUT" = "-" ]; then
firstinfile="$(echo $ARGS | sed -ne '1p')"
@ -54,7 +54,7 @@ fi
! bibtex $texname >/dev/null 2>&1 >bibtex.err; then
if [ $runs -gt 2 ]; then
err "${THIS}: bibtex warning messages:"
cat bibtex.err
cat bibtex.err >&2
fi
fi
else