add EXIT trap as set -e may terminate the program without a signal
[grml-live.git] / grml-live
index ce38987..2a05d05 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -153,7 +153,7 @@ bailout() {
   log "------------------------------------------------------------------------------"
   exit "$EXIT"
 }
-trap bailout 1 2 3 3 6 9 14 15
+trap bailout 1 2 3 3 6 9 14 15 EXIT
 # }}}
 
 # log file stuff {{{