]> git.proxmox.com Git - mirror_acme.sh.git/blobdiff - dnsapi/dns_porkbun.sh
fix: fix typo
[mirror_acme.sh.git] / 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"