Compare commits

..

No commits in common. "b630cf40801d8553b0b6c50470aa051a4f8d1d66" and "cb45ce7b9af2ff7e076d8b43a3c6d3678738d891" have entirely different histories.

2 changed files with 6 additions and 9 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -o pipefail
src_path="$(readlink -e "$0")"
src_path=$(realpath "$0")
version=6.0.0
#CONSTANTS
@ -40,7 +41,6 @@ cols_file="$state_path/$prefix.cols.json"
#CACHE FILES
coords_file="$cache_path/$prefix.coords"
src_path_file="$cache_path/$prefix.src"
#legacy paths
hist_file="$config_path/history"
@ -117,7 +117,6 @@ setup_state_files(){
done
logger INFO "Wiped cache files"
fi
echo "$src_path" > "$src_path_file"
}
print_config_vals(){
local keys=(
@ -625,7 +624,7 @@ fetch_helpers_by_sum(){
[[ -f "$config_file" ]] && source "$config_file"
declare -A sums
sums=(
["funcs"]="2ac0ccc6c697208a1b097508d55ad886"
["funcs"]="8e281479d7b7e6bab9e81fcdf0205ce9"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["servers.py"]="ed442c3aecf33f777d59dcf53650d263"
["ui.py"]="3d67e5e8e85a23dde1fd0e85a9be62a9"
@ -692,7 +691,6 @@ get_response_code(){
local url="$1"
curl -Ls -I -o /dev/null -w "%{http_code}" "$url"
}
fetch_ip_db(){
parse_dl_url(){
curl -Ls "$url" \

View File

@ -51,7 +51,6 @@ _cache_binary="$cache_dir/$prefix.binary"
_cache_coords="$cache_path/$prefix.coords"
_cache_cooldown="$cache_path/$prefix.cooldown"
_cache_lan="$cache_path/$prefix.lan"
_cache_src_path="$cache_path/$prefix.src"
#XDG
freedesktop_path="$HOME/.local/share/applications"
@ -397,7 +396,6 @@ get_dist(){
logger INFO "Distance: $dist km"
fi
}
query_config(){
[[ -n $2 ]] && local key=$2
keys=(
@ -423,7 +421,6 @@ query_config(){
echo "${!i}"
done
}
align_versions_file(){
shift
local mod="$1"
@ -589,6 +586,9 @@ default_steam_path="$default_steam_path"
#Preferred Steam launch command (for Flatpak support)
preferred_client="$preferred_client"
#DZGUI source path
src_path="$src_path"
END
}
format_version_url(){
@ -642,7 +642,6 @@ download_new_version(){
return 1
fi
local version_url="$(format_version_url)"
local src_path="$(< "$_cache_src_path")"
mv "$src_path" "$src_path.old"
curl -Ls "$version_url" > "$src_path"
rc=$?