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>
This commit is contained in:
BlackEagle 2014-02-16 09:55:58 +01:00 committed by Pierre Schmitz
parent 0b2ae245f1
commit 4ee45fe6d4
1 changed files with 3 additions and 3 deletions

View File

@ -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