Update tools.func
This commit is contained in:
parent
0c56fdeb24
commit
30dbd6e271
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user