fix: 修正刪除 API 的參數 #22

Merged
jiantw83 merged 1 commits from develop into master 2025-12-01 07:15:09 +00:00
Showing only changes of commit 146283281b - Show all commits

View File

@@ -90,7 +90,7 @@ while IFS= read -r version; do
else
# 實際刪除
DELETE_RESPONSE=$(curl -s -w "\nHTTP_STATUS:%{http_code}" \
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_ID?token=$TOKEN" \
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_NAME?token=$TOKEN" \
-H "Accept: application/json")
DELETE_HTTP_STATUS=$(echo "$DELETE_RESPONSE" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)