From b017f0d982a2bec26479611158db518900d76a15 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Thu, 21 Apr 2016 15:33:27 +0200 Subject: [PATCH] REpaired typo --- install.sh | 2 +- zaf | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0e74e80..f13e2cc 100755 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ zaf_err() { # Download tgz and extract to tmpdir zaf_download_files() { - [ -n $ZAF_DIR ] && zaf_err "ZAF_DIR not set!" + [ -z $ZAF_DIR ] && zaf_err "ZAF_DIR not set!" rm -rf $ZAF_DIR zaf_fetch_url $ZAF_URL/archive/$ZAF_GITBRANCH.tar.gz | tar -f - -C $ZAF_TMP_DIR -zx && mv $ZAF_TMP_DIR/zaf-$ZAF_GITBRANCH $ZAF_DIR \ || zaf_err "Cannot download and unpack zaf!" diff --git a/zaf b/zaf index 350a56a..d8745f3 100755 --- a/zaf +++ b/zaf @@ -242,7 +242,6 @@ self-upgrade) shift [ -z "$1" ] && auto=auto zaf_os_specific zaf_check_deps zaf && zaf_err "Zaf is installed as system package. Cannot self-upgrade." - rm -rf /tmp/zaf-installer && mkdir /tmp/zaf-installer if ! which curl >/dev/null; then zaf_err "Curl not found. Cannot continue. Please install it."