summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlackEagle <ike.devolder@gmail.com>2014-02-16 09:55:58 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-05-10 08:03:58 +0200
commit4ee45fe6d4e5b317700ca0ac20a800af0b3cef69 (patch)
treeac69357462475cd118ebc8d372c2b71e3fc63ef9
parent0b2ae245f1d18e4b0702b5ca1cec323308daef0c (diff)
downloaddevtools-4ee45fe6d4e5b317700ca0ac20a800af0b3cef69.tar.gz
devtools-4ee45fe6d4e5b317700ca0ac20a800af0b3cef69.tar.xz
abort and die are serious errors so throw 255 out
Signed-off-by: BlackEagle <ike.devolder@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-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