Returning error value of the last process before exiting (Closes: #527331).
This commit is contained in:
parent
fa9ebfb6d1
commit
5611d7306e
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue