Fix: Success check failing due to JSON formatting with spaces
- 'success:true' → 'success' AND 'true' 검사로 변경 - pretty-printed JSON (공백/줄바꿈 포함) 대응 - 실제로는 성공했는데 실패로 표시되던 버그 수정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
d8ce36b8a4
commit
269350c1d2
@ -560,8 +560,8 @@ EOF
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$JSON_DATA")
|
||||
|
||||
# 성공 여부 먼저 확인
|
||||
if ! echo "$RESPONSE" | grep -q '"success":true'; then
|
||||
# 성공 여부 먼저 확인 (공백/줄바꿈 허용)
|
||||
if ! echo "$RESPONSE" | grep -q '"success"' || ! echo "$RESPONSE" | grep -q 'true'; then
|
||||
echo -e "${RED}✗ 약국 생성 API 실패${NC}"
|
||||
echo -e "${YELLOW}[응답 내용]${NC}"
|
||||
echo "$RESPONSE"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user