]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Fix porkbun issues
authorRoman Zabaluev <github@haarolean.dev>
Sun, 30 May 2021 15:17:39 +0000 (18:17 +0300)
committerHaarolean <gpg@haarolean.dev>
Sun, 30 May 2021 15:23:13 +0000 (18:23 +0300)
See gh-3450

dnsapi/dns_porkbun.sh

index 90caec4a5d52ef047af035c7b4a0f45c5d257ebd..ad4455b692c00854a3807fdc753dc3e30d8f3dae 100644 (file)
@@ -110,8 +110,8 @@ _get_root() {
 
     if _porkbun_rest POST "dns/retrieve/$h"; then
       if _contains "$response" "\"status\":\"SUCCESS\""; then
-        _sub_domain="$(echo "$fulldomain" | sed "s/\\.$_domain\$//")"
         _domain=$h
+        _sub_domain="$(echo "$fulldomain" | sed "s/\\.$_domain\$//")"
         return 0
       else
         _debug "Go to next level of $_domain"