15 Feb
2014
15 Feb
'14
5:13 p.m.
Signed-off-by: BlackEagle <ike.devolder@gmail.com> --- lib/common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/common.sh b/lib/common.sh index cb9db76..206ea01 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -69,8 +69,8 @@ cleanup() { } abort() { - msg 'Aborting...' - cleanup 0 + error 'Aborting...' + cleanup 255 } trap_abort() { @@ -80,12 +80,12 @@ trap_abort() { trap_exit() { trap - EXIT INT QUIT TERM HUP - cleanup + cleanup 0 } die() { (( $# )) && error "$@" - cleanup 1 + cleanup 255 } trap 'trap_abort' INT QUIT TERM HUP -- 1.8.5.5