From fbb2bd2b8e1337f59bd56728460f9ea2fb5fc423 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Sat, 27 Oct 2012 09:51:36 +0200 Subject: Fix return code handling Stop trap_exit from forcing a 0 exit code. This fixes makechrootpkg, which used to always return success, even if the build failed. Signed-off-by: Pierre Schmitz --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common.sh b/lib/common.sh index 74b251f..b39bbbc 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -78,7 +78,7 @@ trap_abort() { trap_exit() { trap - EXIT INT QUIT TERM HUP - cleanup 0 + cleanup } die() { -- cgit v1.2.3-70-g09d2