fix curl grammer 2

This commit is contained in:
2025-07-27 18:54:18 +08:00
parent 1e82b04eac
commit 6830713f8a
2 changed files with 228 additions and 0 deletions

View File

@ -209,6 +209,13 @@ download_file() {
local download_url="${GITEA_URL}/api/v1/repos/${owner}/${repo_name}/raw/${file_path}"
# --- 增加的调试代码 ---
info "--- DEBUG START ---"
info "正在构建的 URL 如下:"
# 使用 printf "%q" 可以更安全地打印变量,显示特殊字符
printf "URL: %q\n" "${download_url}"
info "--- DEBUG END ---"
info "正在下载 '${file_path}'..."
curl -L --progress-bar --fail \
-H "Authorization: token ${ACCESS_TOKEN}" \