Commit 30375c58 authored by Harry Fuchs's avatar Harry Fuchs

handle error code in pandoc

parent 1fa989f7
cp edit-this-file.tex tmp.tex cp edit-this-file.tex tmp.tex
python3 preprocessor.py python3 preprocessor.py
pandoc -f org -t latex tmp.tex -s -o for-compile.tex --metadata-file meta.yaml --template="latex.template" pandoc -f org -t latex tmp.tex -s -o for-compile.tex --metadata-file meta.yaml --template="latex.template"
exitcode=$?
if [[ $exitcode == 0 ]]
then
echo "pandoc worked"
else
echo "pandoc complained"
exit $exitcode
fi
python3 postprocessor.py python3 postprocessor.py
# clear && clear # clear && clear
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment