1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-13 05:59:06 +01:00

Install changes

This commit is contained in:
Lukas Macura 2016-04-21 15:44:39 +02:00
parent b017f0d982
commit 185438225c

View File

@ -11,6 +11,7 @@ fi
ZAF_TMP_DIR="/tmp/zaf-installer"
ZAF_DIR="$ZAF_TMP_DIR/zaf"
mkdir -p $ZAF_TMP_DIR
# Lite version of zaf_fetch_url, full version will be loaded later
zaf_fetch_url(){
@ -29,8 +30,7 @@ zaf_err() {
zaf_download_files() {
[ -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!"
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!"
}
if ! [ -f README.md ]; then