qa roles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user