Commit d92d607c authored by Luc Grosheintz's avatar Luc Grosheintz

Fail when any command fails.

parent d67f49dd
#!/usr/bin/zsh -f
# fail when an error is encountered.
set -e
# Send bug reports to simon.pintarelli@sam.math.ethz.ch
zparseopts -E -D -A myoptions t c s v -help -clean -lecture:=olec
......@@ -158,8 +161,8 @@ if (( $+myoptions[-c] )) ; then
(echo "*WARNING* $texfile does not exist." 1>&2)
fi
done)
echo $files | parallel --bar --will-cite xelatex '-interaction nonstopmode -halt-on-error' > /dev/null
echo $files | parallel --bar --will-cite xelatex '-interaction nonstopmode -halt-on-error' > /dev/null
echo $files | parallel --halt soon,fail=1 --bar --will-cite xelatex '-interaction nonstopmode -halt-on-error' > /dev/null
echo $files | parallel --halt soon,fail=1 --bar --will-cite xelatex '-interaction nonstopmode -halt-on-error' > /dev/null
# check if pdf was created
for ldir in ${(f)results_dir}; do
tail=${ldir:t}
......
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