Also, since the script has 'set -e', if $LOG doesn't exist the script exits with return code 1 following the trap, causing dpkg to think the script has failed. I suggest adding "|| exit 0" to the end of the trap command, e.g.:

trap "test -f $LOG && mv -f $LOG  $ELCDIR/install.log > /dev/null 2>&1 || exit 
0" EXIT

--
Malcolm Scott
Trinity Hall, Cambridge, CB2 1TJ



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to