diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 0e9da464..14f81692 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -432,6 +432,7 @@ run_function_safe() { run_function "$1" + trap - ERR eval "$restoretrap" eval "$restoreset" eval "$restoreshopt"