mirror of
https://github.com/limosek/zaf.git
synced 2024-11-14 14:39:06 +01:00
Install changes
This commit is contained in:
parent
b017f0d982
commit
185438225c
@ -11,6 +11,7 @@ fi
|
|||||||
|
|
||||||
ZAF_TMP_DIR="/tmp/zaf-installer"
|
ZAF_TMP_DIR="/tmp/zaf-installer"
|
||||||
ZAF_DIR="$ZAF_TMP_DIR/zaf"
|
ZAF_DIR="$ZAF_TMP_DIR/zaf"
|
||||||
|
mkdir -p $ZAF_TMP_DIR
|
||||||
|
|
||||||
# Lite version of zaf_fetch_url, full version will be loaded later
|
# Lite version of zaf_fetch_url, full version will be loaded later
|
||||||
zaf_fetch_url(){
|
zaf_fetch_url(){
|
||||||
@ -29,8 +30,7 @@ zaf_err() {
|
|||||||
zaf_download_files() {
|
zaf_download_files() {
|
||||||
[ -z $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!"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! [ -f README.md ]; then
|
if ! [ -f README.md ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user