summaryrefslogtreecommitdiffstats
path: root/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common.sh')
-rw-r--r--lib/common.sh6
1 files 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