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>
This commit is contained in:
BlackEagle 2014-02-16 09:55:59 +01:00 committed by Pierre Schmitz
parent 4ee45fe6d4
commit 6db31cc16a
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ setup_workdir() {
cleanup() {
[[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
[[ $1 ]] && exit $1
exit ${1:-0}
}
abort() {