diff options
Diffstat (limited to 'functions')
-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 () |