fix curl grammer 2
This commit is contained in:
7
gitea.sh
7
gitea.sh
@ -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}" \
|
||||
|
||||
Reference in New Issue
Block a user