This commit is contained in:
2025-09-06 12:34:25 +03:00
parent c5ee179e71
commit 30ef449756
26 changed files with 860 additions and 207 deletions

View File

@@ -45,7 +45,7 @@
# [RELATION: 'EntryPoint'('main_dispatch')] -> [CALLS] -> ['Function'('return_to_dev')]
# [END_SEMANTICS]
set -x
# [DEPENDENCIES]
# Gitea Client Script
@@ -122,9 +122,12 @@ function api_request() {
response_body=$(<"$body_file")
rm -f "$body_file" # Очистка после использования
echo "DEBUG: HTTP Code: $http_code" >&2
echo "DEBUG: Response Body: $response_body" >&2
if [[ "$http_code" -ge 200 && "$http_code" -lt 300 ]]; then
if [[ -z "$response_body" ]]; then
echo "{\"http_status\": $http_code, \"body\": \"empty\"}"
echo "{""http_status"": $http_code, ""body"": ""empty""}"
else
echo "$response_body"
fi