summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-08-06 03:29:09 +0200
committerHolger Levsen <holger@layer-acht.org>2016-08-06 12:01:48 +0200
commita8364486b5f2ad55243ec7b18f04faa7f1ad8883 (patch)
treef83677fafe76703875fdbebfea627215c778e11b
parentd2728ceca963fb1a0d7138a67927bc44e0739749 (diff)
downloadjenkins.debian.net-a8364486b5f2ad55243ec7b18f04faa7f1ad8883.tar.xz
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@layer-acht.org>
-rwxr-xr-xbin/reproducible_lede.sh3
-rwxr-xr-xbin/reproducible_openwrt.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index 97671514..120f5ca9 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 07f86796..b3d66750 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