From 8204e5e81f8cb42072c1614eb7ea4ba8b218f3b0 Mon Sep 17 00:00:00 2001 From: Martin Sandford Date: Tue, 28 Apr 2020 20:40:20 +0100 Subject: [PATCH] unprettify the json responses --- dnsapi/dns_cf.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dnsapi/dns_cf.sh b/dnsapi/dns_cf.sh index 43bc1428..d4ed3c80 100755 --- a/dnsapi/dns_cf.sh +++ b/dnsapi/dns_cf.sh @@ -225,6 +225,8 @@ _cf_rest() { response="$(_get "$CF_Api/$ep")" fi + response=$(echo $response | tr -d [:space:]) + if [ "$?" != "0" ]; then _err "error $ep" return 1