Signed-off-by: BlackEagle <[email protected]> --- lib/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/common.sh b/lib/common.sh
index cb9db76..04a282b 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() {
@@ -85,7 +85,7 @@ trap_exit() {
die() {
(( $# )) && error "$@"
- cleanup 1
+ cleanup 255
}
trap 'trap_abort' INT QUIT TERM HUP
--
1.8.5.5
