summaryrefslogtreecommitdiffstats
path: root/lib/common.sh
diff options
context:
space:
mode:
authorBlackEagle <ike.devolder@gmail.com>2014-02-16 09:55:59 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-05-10 08:04:24 +0200
commit6db31cc16a8044272170204975378ece8eb94e2a (patch)
tree237810c3208585afe1a24c76ffc4354b239331f4 /lib/common.sh
parent4ee45fe6d4e5b317700ca0ac20a800af0b3cef69 (diff)
downloaddevtools-6db31cc16a8044272170204975378ece8eb94e2a.tar.gz
devtools-6db31cc16a8044272170204975378ece8eb94e2a.tar.xz
when cleanup is called without code exit with 0
Signed-off-by: BlackEagle <ike.devolder@gmail.com> 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 04a282b..1009e90 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -65,7 +65,7 @@ setup_workdir() {
cleanup() {
[[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
- [[ $1 ]] && exit $1
+ exit ${1:-0}
}
abort() {