Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8cbe2e3e4d | |||
|
|
146283281b | ||
| 075bc62138 | |||
| 4a2c9d6064 | |||
| 17721ae9d0 | |||
| 9929c05469 | |||
| a078f2d984 | |||
| 9068f5e5b6 | |||
| e40a7adad6 | |||
| 214ec5f7bd | |||
| 829c119657 | |||
| 2ac7efe907 | |||
| 74e3e758c9 | |||
| 3e32b71abe | |||
| a8eaa2a293 | |||
| f6925cc5e7 | |||
| 2daf39673a | |||
| f3afba6e49 | |||
| c5b69ac380 | |||
| 963fa24ce0 | |||
| 93402e99ee | |||
| ac72d18016 | |||
| 70cac9e740 |
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user