'Generic Commit'
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 1m30s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m36s
Build-Test-Publish / create-manifest (push) Successful in 18s

This commit is contained in:
Your Name
2025-06-15 22:26:24 +12:00
parent 826fb95e56
commit 22dab2795a

View File

@@ -481,13 +481,19 @@ if echo "${RESPONSE}" | jq -r '.error' | grep -q "Too many authentication attemp
die "Expected no rate limit error, got: ${RESPONSE}"
fi
# delete the object
TODELHASH=$(curl -s "${HOSTURL}/hash/test:latest" | jq -r '.hash')
echo "deleting test:latest ${TODELHASH}"
curl -s "${HOSTURL}/meta/${HASH}" | jq
# delete the object (only if it exists)
TODELHASH=$(curl -s "${HOSTURL}/hash/test:form_updated" | jq -r '.hash')
if [ "${TODELHASH}" != "null" ] && [ -n "${TODELHASH}" ]; then
echo "deleting test:form_updated ${TODELHASH}"
if ! curl -s -H "Authorization: Bearer ${WRITE_TOKEN}" "${HOSTURL}/deleteobject?hash=${TODELHASH}" | jq -r '.result' | grep -q 'success'; then
die "failed to delete ${TODELHASH}"
fi
else
echo "test:form_updated not found, skipping deletion"
echo "HASH=${HASH}, TODELHASH=${TODELHASH}"
fi
#------------------------------------------------------------------------------------------------