From 16f8559529665d4afc956b2251b6c0c559a55994 Mon Sep 17 00:00:00 2001 From: Jesus Alvarez Date: Sat, 12 Dec 2015 15:38:34 -0800 Subject: [PATCH] lib.sh: Fix cleanup() Would always exit with return code 0 --- lib.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib.sh b/lib.sh index 30021cf..c189140 100644 --- a/lib.sh +++ b/lib.sh @@ -70,8 +70,7 @@ run_cmd() { } cleanup() { - # [[ -n $WORKDIR ]] && rm -rf "$WORKDIR" - [[ $1 ]] && exit $1 + exit $1 || true } abort() {