Returning error value of the last process before exiting (Closes: #527331).

This commit is contained in:
Daniel Baumann 2009-10-19 13:52:54 +02:00
parent fa9ebfb6d1
commit 5611d7306e
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@
Exit ()
{
VALUE="${?}"
if [ "${_DEBUG}" = "enabled" ]
then
# Dump variables
@ -22,6 +24,8 @@ Exit ()
do
umount ${DIRECTORY} > /dev/null 2>&1 || true
done
return ${VALUE}
}
Setup_cleanup ()