Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
806e385b86 |
@@ -74,7 +74,7 @@ echo "$TO_DELETE" | jq -c '.[]' | while read -r version; do
|
||||
else
|
||||
# 實際刪除
|
||||
DELETE_RESPONSE=$(curl -s -w "HTTP_STATUS:%{http_code}" \
|
||||
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_NAME?token=$TOKEN" \
|
||||
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_ID?token=$TOKEN" \
|
||||
-H "Accept: application/json")
|
||||
|
||||
HTTP_STATUS=$(echo "$DELETE_RESPONSE" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)
|
||||
|
||||
Reference in New Issue
Block a user