summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-rpm-package2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 13fde20..a034ce1 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -105,7 +105,7 @@ cleanup () {
}
# Run cleanup() automatically.
-trap cleanup EXIT SIGTERM SIGINT SIGHUP SIGPIPE SIGALRM SIGUSR1 SIGUSR2
+trap cleanup ERR EXIT SIGTERM SIGINT SIGHUP SIGPIPE SIGALRM SIGUSR1 SIGUSR2
# FIXME: this should really be in a common.(sh) file!
function make_boolean () {