summaryrefslogtreecommitdiff
path: root/functions/exit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/exit.sh')
-rwxr-xr-xfunctions/exit.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/exit.sh b/functions/exit.sh
index 16dda8cce..bbfaf5837 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 ()