fix(tools): sanitize version string for filename
Replace @ and / with _ in filename to avoid invalid paths like papra-@papra/docker@26.0.0.tar.gz
This commit is contained in:
parent
fc8433ad8b
commit
0481d5ccf7
@ -1768,7 +1768,10 @@ function fetch_and_deploy_gh_release() {
|
|||||||
|
|
||||||
### Tarball Mode ###
|
### Tarball Mode ###
|
||||||
if [[ "$mode" == "tarball" || "$mode" == "source" ]]; then
|
if [[ "$mode" == "tarball" || "$mode" == "source" ]]; then
|
||||||
filename="${app_lc}-${version}.tar.gz"
|
# Sanitize version for filename (remove/replace special chars)
|
||||||
|
local safe_version="${version//@/_}"
|
||||||
|
safe_version="${safe_version//\//_}"
|
||||||
|
filename="${app_lc}-${safe_version}.tar.gz"
|
||||||
local download_success=false
|
local download_success=false
|
||||||
|
|
||||||
# For tags with special characters (@, /), use codeload.github.com directly
|
# For tags with special characters (@, /), use codeload.github.com directly
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user