diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-08-06 03:29:09 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-08-06 12:01:48 +0200 |
commit | a8364486b5f2ad55243ec7b18f04faa7f1ad8883 (patch) | |
tree | f83677fafe76703875fdbebfea627215c778e11b | |
parent | d2728ceca963fb1a0d7138a67927bc44e0739749 (diff) | |
download | jenkins.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-x | bin/reproducible_lede.sh | 3 | ||||
-rwxr-xr-x | 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 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 |