15 Feb
2014
15 Feb
'14
6:10 p.m.
On 2014-15-02, BlackEagle <ike.devolder@gmail.com> wrote:
Signed-off-by: BlackEagle <ike.devolder@gmail.com> --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/common.sh b/lib/common.sh index 206ea01..3ca1c7e 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -65,7 +65,7 @@ setup_workdir() {
cleanup() { [[ -n $WORKDIR ]] && rm -rf "$WORKDIR" - [[ $1 ]] && exit $1 + [[ ! -z $1 ]] && exit $1 || exit 0
Why not simply use "echo ${1:-0}" instead?
}
abort() { -- 1.8.5.5