Commit 4ee45fe6 authored by BlackEagle's avatar BlackEagle Committed by Pierre Schmitz
Browse files

abort and die are serious errors so throw 255 out

parent 0b2ae245
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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