Update tools.func
This commit is contained in:
parent
7e06aa5734
commit
b1f90568ac
@ -586,12 +586,11 @@ fetch_and_deploy_gh_release() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Version comparison (if we already have this version, skip)
|
# Version comparison (if we already have this version, skip)
|
||||||
if [[ "$current_version" == "$tag" ]]; then
|
if [[ "$current_version" == "$version" ]]; then
|
||||||
$STD msg_info "Already running the latest version ($tag). Skipping update."
|
$STD msg_info "Already running the latest version ($version). Skipping update."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local version="$tag"
|
|
||||||
local base_url="https://github.com/$repo/releases/download/v$tag"
|
local base_url="https://github.com/$repo/releases/download/v$tag"
|
||||||
local tmpdir
|
local tmpdir
|
||||||
tmpdir=$(mktemp -d) || return 1
|
tmpdir=$(mktemp -d) || return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user