From 0b52d79cb0be05433123855eb2f4d24b84eaa24b Mon Sep 17 00:00:00 2001 From: diseq Date: Sat, 5 May 2018 12:58:06 +0200 Subject: [PATCH] minor cosmetics --- dnsapi/dns_one.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_one.sh b/dnsapi/dns_one.sh index dde655c8..1725e81f 100644 --- a/dnsapi/dns_one.sh +++ b/dnsapi/dns_one.sh @@ -116,12 +116,12 @@ dns_one_rm() { response="$(_post "$postdata" "https://www.one.com/admin/ajax-dns-entries.do" "" "POST")" response="$(echo "$response" | _normalizeJson)" - _debug response $response + _debug response "$response" # remove _acme-challenge subdomain mysubdomainid=$(printf -- "%s" "$response" | sed -n "s/.*{\"subDomain\":\"$mysubdomain\"[^}]*,\"value\":\"$txtvalue\",\"id\":\"\([0-9][0-9]*\)\"}.*/\1/p") - if [ $mysubdomainid ]; then + if [ "$mysubdomainid" ]; then _debug mysubdomainid "$mysubdomainid"