[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible/openwrt|lede: fix exit code of node execution
Holger Levsen
holger at layer-acht.org
Sat Aug 6 10:02:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit a8364486b5f2ad55243ec7b18f04faa7f1ad8883
Author: Alexander Couzens <lynxis at fe80.eu>
Date: Sat Aug 6 03:29:09 2016 +0200
reproducible/openwrt|lede: fix exit code of node execution
The return code from all functions are 0 or the program will exit on a different code path.
Also ensure there is no trap in the end.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_lede.sh | 3 ++-
bin/reproducible_openwrt.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index 9767151..120f5ca 100755
--- a/bin/reproducible_lede.sh
+++ b/bin/reproducible_lede.sh
@@ -33,7 +33,8 @@ case $1 in
;;
esac
$@
- exit $?
+ trap - INT TERM EXIT
+ exit 0
;;
master)
# master code following
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 07f8679..b3d6675 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -33,7 +33,8 @@ case $1 in
;;
esac
$@
- exit $?
+ trap - INT TERM EXIT
+ exit 0
;;
master)
# master code following
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list