]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Filter out blank lines
authormod242 <40213799+mod242@users.noreply.github.com>
Thu, 16 Apr 2020 18:03:34 +0000 (20:03 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Apr 2020 18:03:34 +0000 (20:03 +0200)
Response from the provider has changed so that there are blank lines at the end, which leads to the result can not be parsed correctly

dnsapi/dns_ddnss.sh

index 53781d0d9deb19a8b6e1c821785fe42ab169f4ca..ecc4f174a4119999718f665e1b32c916f4f0e34d 100644 (file)
@@ -119,7 +119,7 @@ _ddnss_rest() {
 
   # DDNSS uses GET to update domain info
   if [ "$method" = "GET" ]; then
-    response="$(_get "$url" | sed 's/<[a-zA-Z\/][^>]*>//g' | _tail_n 1)"
+    response="$(_get "$url" | sed 's/<[a-zA-Z\/][^>]*>//g' | tr -s "\n" | _tail_n 1)"
   else
     _err "Unsupported method"
     return 1