From a8364486b5f2ad55243ec7b18f04faa7f1ad8883 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 6 Aug 2016 03:29:09 +0200 Subject: 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 --- 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 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 -- cgit v1.2.3-70-g09d2