Update tools.func

This commit is contained in:
CanbiZ 2025-06-02 15:48:48 +02:00
parent 0c56fdeb24
commit 30dbd6e271

View File

@ -696,11 +696,9 @@ fetch_and_deploy_gh_release() {
local target="${5:-/opt/$app}" # optional target dir local target="${5:-/opt/$app}" # optional target dir
local app_lc=$(echo "${app,,}" | tr -d ' ') 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" local curl_timeout="--connect-timeout 10 --max-time 30"
mkdir -p "$(dirname "$version_file")"
local current_version="" local current_version=""
if [[ -f "$version_file" ]]; then if [[ -f "$version_file" ]]; then
current_version=$(<"$version_file") current_version=$(<"$version_file")