fix space

This commit is contained in:
CanbiZ 2026-01-14 09:33:37 +01:00
parent fed9fd9db8
commit 17d04e2d1d

View File

@ -1770,8 +1770,9 @@ function fetch_and_deploy_gh_release() {
if [[ "$mode" == "tarball" || "$mode" == "source" ]]; then if [[ "$mode" == "tarball" || "$mode" == "source" ]]; then
# GitHub API's tarball_url/zipball_url can return HTTP 300 Multiple Choices # GitHub API's tarball_url/zipball_url can return HTTP 300 Multiple Choices
# when a branch and tag share the same name. Use explicit refs/tags/ URL instead. # when a branch and tag share the same name. Use explicit refs/tags/ URL instead.
# URL-encode @ symbols in tag names # URL-encode special characters in tag names (@ and /)
local encoded_tag_name="${tag_name//@/%40}" local encoded_tag_name="${tag_name//@/%40}"
encoded_tag_name="${encoded_tag_name//\//%2F}"
local direct_tarball_url="https://github.com/$repo/archive/refs/tags/$encoded_tag_name.tar.gz" local direct_tarball_url="https://github.com/$repo/archive/refs/tags/$encoded_tag_name.tar.gz"
filename="${app_lc}-${version}.tar.gz" filename="${app_lc}-${version}.tar.gz"