fix: url prefix

This commit is contained in:
aclist committed 2023-11-15 19:59:07 +09:00
1 parent e6f808892b
commit d8e7144ea8
1 file changed
+4 -6
+4 -6
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=4.0.0-rc.1 version=4.0.0-rc.2
aid=221100 aid=221100
game="dayz" game="dayz"
@@ -1739,9 +1739,6 @@ check_architecture(){
logger INFO "Setting architecture to 'desktop'" logger INFO "Setting architecture to 'desktop'"
fi fi
} }
log(){
echo "$@" >> $HOME/log
}
print_ip_list(){ print_ip_list(){
for ((i=0; i<${#ip_list[@]}; ++i)); do for ((i=0; i<${#ip_list[@]}; ++i)); do
printf "\t\"%s\"\n" ${ip_list[$i]} printf "\t\"%s\"\n" ${ip_list[$i]}
@@ -1992,8 +1989,9 @@ fetch_dzq(){
fetch_query(){ fetch_query(){
[[ -f $helpers_path/query.py ]] && return [[ -f $helpers_path/query.py ]] && return
local author="aclist" local author="aclist"
local repo="dztui" local repo="$branch"
local url="https://raw.githubusercontent.com/$author/$repo/helpers/query.py" local url="https://raw.githubusercontent.com/$author/dztui/$repo/helpers/query.py"
local real="https://raw.githubusercontent.com/aclist/dztui/testing/helpers/query.py"
curl -Ls "$url" > "$helpers_path/query.py" curl -Ls "$url" > "$helpers_path/query.py"
} }
fetch_helpers(){ fetch_helpers(){