mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 18:05:54 +00:00
Update tools.func
This commit is contained in:
@@ -696,11 +696,9 @@ fetch_and_deploy_gh_release() {
|
||||
local target="${5:-/opt/$app}" # optional target dir
|
||||
|
||||
local app_lc=$(echo "${app,,}" | tr -d ' ')
|
||||
local version_file="$HOME/.${app_lc}/${app_lc}_version.txt"
|
||||
local version_file="$HOME/.${app_lc}"
|
||||
local curl_timeout="--connect-timeout 10 --max-time 30"
|
||||
|
||||
mkdir -p "$(dirname "$version_file")"
|
||||
|
||||
local current_version=""
|
||||
if [[ -f "$version_file" ]]; then
|
||||
current_version=$(<"$version_file")
|
||||
|
||||
Reference in New Issue
Block a user