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:
parent
4ee45fe6d4
commit
6db31cc16a
|
@ -65,7 +65,7 @@ setup_workdir() {
|
|||
|
||||
cleanup() {
|
||||
[[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
|
||||
[[ $1 ]] && exit $1
|
||||
exit ${1:-0}
|
||||
}
|
||||
|
||||
abort() {
|
||||
|
|
Loading…
Reference in New Issue