new package

This commit is contained in:
paltovkone
2026-03-15 12:55:33 +04:00
parent 2bde911af2
commit fb5013626b

View File

@ -16,7 +16,7 @@ COMPONENT="main"
echo "↑ publishing ${FILENAME}..."
HTTP_CODE=$(curl -fsSL \
HTTP_CODE=$(curl -sSL \
-w "%{http_code}" \
-o /tmp/publish_response.txt \
-X PUT \
@ -30,7 +30,9 @@ echo ""
if [[ "$HTTP_CODE" =~ ^2 ]]; then
echo "✓ published ${FILENAME} (HTTP ${HTTP_CODE})"
elif [[ "$HTTP_CODE" == "409" ]]; then
echo "${FILENAME} already exists, skipping (HTTP 409)"
else
echo "✗ failed (HTTP ${HTTP_CODE})"
exit 1
fi
fi