diff options
author | BlackEagle <ike.devolder@gmail.com> | 2014-02-16 09:55:59 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-05-10 08:04:24 +0200 |
commit | 6db31cc16a8044272170204975378ece8eb94e2a (patch) | |
tree | 237810c3208585afe1a24c76ffc4354b239331f4 | |
parent | 4ee45fe6d4e5b317700ca0ac20a800af0b3cef69 (diff) | |
download | devtools-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>
-rw-r--r-- | lib/common.sh | 2 |
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() { |