common.sh: propagate error through trap_exit
Fixes a breakage introduced in 6db31cc16a
which leads to errors
being masked from makechrootpkg.
This commit is contained in:
parent
905198295d
commit
af6c0a0f6a
|
@ -79,8 +79,9 @@ trap_abort() {
|
|||
}
|
||||
|
||||
trap_exit() {
|
||||
local r=$?
|
||||
trap - EXIT INT QUIT TERM HUP
|
||||
cleanup
|
||||
cleanup $r
|
||||
}
|
||||
|
||||
die() {
|
||||
|
|
Loading…
Reference in New Issue