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:
parent
0b2ae245f1
commit
4ee45fe6d4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue