Bug#249597: texmf: Leaves spurious tempfiles around
Jeroen van Wolffelaar <jeroen@wolffelaar.nl> wrote:
> Why not use something like this:
While putting together all those suggestions, just some comments on this code:
>
> echo "Running initex..."
> TMPFILE=`mktemp /tmp/tetex-bin.postinst.initex.XXXX` || exit 1
if mktemp fails, the postinst script will exit anyway. The '|| exit 1'
part is not needed.
> if initex > $TMPFILE; then
> rm -f $TMPFILE
> else
> echo "initex exited with code $?... output stored in $TMPFILE"
fmtutil does not give fance exit codes, it has only 0 and 1. Therefore I
am not going to take this.
Regards, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: