Commit f78914cc authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig) Committed by Allan McRae
Browse files

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's avatarAllan McRae <>
parent de8c5e78
......@@ -432,6 +432,7 @@ run_function_safe() {
run_function "$1"
trap - ERR
eval "$restoretrap"
eval "$restoreset"
eval "$restoreshopt"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment