From daec35ebb62843f79006f15db29a11e2db03c89d Mon Sep 17 00:00:00 2001 From: Subesh Bhandari Date: Tue, 19 May 2020 22:25:19 +0545 Subject: [PATCH] Fix old version jq format error --- api-test.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api-test.sh b/api-test.sh index c504283..23a1fb5 100755 --- a/api-test.sh +++ b/api-test.sh @@ -99,20 +99,19 @@ display_results() { echo "${BOLD}$(color_response $status)$res${RESET}" if [[ $HEADER_ONLY == 1 ]]; then echo "HEADER:" - echo "$RESPONSE_HEADER" | jq -C + echo "$RESPONSE_HEADER" | jq -C '.' else if [[ $SHOW_HEADER == 1 ]]; then echo "HEADER:" - echo "$RESPONSE_HEADER" | jq -C + echo "$RESPONSE_HEADER" | jq -C '.' fi if [[ $SILENT == 0 ]]; then echo "BODY:" - echo "$RESPONSE_BODY" | jq -C + echo "$RESPONSE_BODY" | jq -C '.' fi - fi echo "META:" - echo "$META" | jq -C + echo "$META" | jq -C '.' } color_response() {