diff --git a/v2ray/scripts/publish.sh b/v2ray/scripts/publish.sh index 2cbd5a8..b221f25 100644 --- a/v2ray/scripts/publish.sh +++ b/v2ray/scripts/publish.sh @@ -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 \ No newline at end of file +fi