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