filename fix

This commit is contained in:
MickLesk 2026-01-06 20:24:31 +01:00
parent e06cd44584
commit 15d22d7f98

View File

@ -1763,7 +1763,9 @@ function fetch_and_deploy_gh_release() {
local tag_encoded
tag_encoded=$(printf '%s' "$tag_name" | jq -sRr @uri)
local direct_tarball_url="https://github.com/$repo/archive/refs/tags/$tag_encoded.tar.gz"
filename="${app_lc}-${version}.tar.gz"
# Sanitize version for filename (replace / with -)
local version_safe="${version//\//-}"
filename="${app_lc}-${version_safe}.tar.gz"
curl $download_timeout -fsSL -o "$tmpdir/$filename" "$direct_tarball_url" || {
msg_error "Download failed: $direct_tarball_url"