summaryrefslogtreecommitdiff
path: root/lib/common.sh
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2012-10-27 09:51:36 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-10-27 20:27:39 +0200
commitfbb2bd2b8e1337f59bd56728460f9ea2fb5fc423 (patch)
tree8c1e0a30d1576177961f1fb218aaf94e6959c967 /lib/common.sh
parentd5c6bc7656d3da87a61ab249fca762ddf08e1887 (diff)
downloaddevtools32-fbb2bd2b8e1337f59bd56728460f9ea2fb5fc423.tar.xz
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 <pierre@archlinux.de>
Diffstat (limited to 'lib/common.sh')
-rw-r--r--lib/common.sh2
1 files changed, 1 insertions, 1 deletions
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() {