diff options
author | Daniel Baumann <daniel@debian.org> | 2009-10-19 13:52:54 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:47 +0100 |
commit | 5611d7306ef9f6efea6e1202ab5eaa1bac6f431b (patch) | |
tree | 5987cf4e8504e85028563a89892e24a703d1c1c4 | |
parent | fa9ebfb6d13d8dfed739dc74ad4c28110a4103f1 (diff) | |
download | live-build-5611d7306ef9f6efea6e1202ab5eaa1bac6f431b.zip live-build-5611d7306ef9f6efea6e1202ab5eaa1bac6f431b.tar.gz |
Returning error value of the last process before exiting (Closes: #527331).
-rwxr-xr-x | functions/exit.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/exit.sh b/functions/exit.sh index 16dda8c..bbfaf58 100755 --- a/functions/exit.sh +++ b/functions/exit.sh @@ -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 () |