From e6d31b4e0cb3c83565f18c3b99153fd3a82669e8 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 29 Feb 2016 13:38:40 +0800 Subject: [PATCH] minor, add debug info --- dnsapi/dns-cf.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dnsapi/dns-cf.sh b/dnsapi/dns-cf.sh index b1e4b47d..da5bef72 100755 --- a/dnsapi/dns-cf.sh +++ b/dnsapi/dns-cf.sh @@ -31,9 +31,12 @@ dns-cf-add() { _err "invalid domain" return 1 fi + _debug _domain_id "$_domain_id" + _debug _sub_domain "$_sub_domain" + _debug _domain "$_domain" _debug "Getting txt records" - _cf_rest GET "/zones/$_domain_id/dns_records?type=TXT&name=$fulldomain" + _cf_rest GET "/zones/${_domain_id}/dns_records?type=TXT&name=$fulldomain" if [ "$?" != "0" ] || ! printf $response | grep \"success\":true > /dev/null ; then _err "Error"