makepkg: Clear ERR trap before trying to restore it
$restoretrap is empty if the trap was not set. This caused the trap handler to remain and override later exit codes. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
de8c5e78bb
commit
f78914cc6e
1 changed files with 1 additions and 0 deletions
|
@ -432,6 +432,7 @@ run_function_safe() {
|
|||
|
||||
run_function "$1"
|
||||
|
||||
trap - ERR
|
||||
eval "$restoretrap"
|
||||
eval "$restoreset"
|
||||
eval "$restoreshopt"
|
||||
|
|
Loading…
Add table
Reference in a new issue