mirror of
https://github.com/limosek/zaf.git
synced 2024-11-22 02:19:06 +01:00
REpaired typo
This commit is contained in:
parent
957c53958c
commit
b017f0d982
@ -27,7 +27,7 @@ zaf_err() {
|
|||||||
|
|
||||||
# Download tgz and extract to tmpdir
|
# Download tgz and extract to tmpdir
|
||||||
zaf_download_files() {
|
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
|
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_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!"
|
|| zaf_err "Cannot download and unpack zaf!"
|
||||||
|
1
zaf
1
zaf
@ -242,7 +242,6 @@ self-upgrade)
|
|||||||
shift
|
shift
|
||||||
[ -z "$1" ] && auto=auto
|
[ -z "$1" ] && auto=auto
|
||||||
zaf_os_specific zaf_check_deps zaf && zaf_err "Zaf is installed as system package. Cannot self-upgrade."
|
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;
|
if ! which curl >/dev/null;
|
||||||
then
|
then
|
||||||
zaf_err "Curl not found. Cannot continue. Please install it."
|
zaf_err "Curl not found. Cannot continue. Please install it."
|
||||||
|
Loading…
Reference in New Issue
Block a user