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:
Dave Reisner 2014-06-01 23:54:20 -04:00
parent 905198295d
commit af6c0a0f6a
1 changed files with 2 additions and 1 deletions

View File

@ -79,8 +79,9 @@ trap_abort() {
}
trap_exit() {
local r=$?
trap - EXIT INT QUIT TERM HUP
cleanup
cleanup $r
}
die() {