[X2Go-Commits] [buildscripts] 06/07: bin/build-rpm-package: add ERR trap handler. This script is executed with set -e and cleanup not used if any command errors otherwise.

git-admin at x2go.org git-admin at x2go.org
Wed Apr 1 10:18:09 CEST 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit a5e6b7679e970cf540567ee50605ea74b68e5388
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Apr 1 10:15:14 2015 +0200

    bin/build-rpm-package: add ERR trap handler. This script is executed with set -e and cleanup not used if any command errors otherwise.
---
 bin/build-rpm-package |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 () {

--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list