]> git.proxmox.com Git - mirror_acme.sh.git/blobdiff - dnsapi/dns_zilore.sh
fix: fix shellcheck
[mirror_acme.sh.git] / dnsapi / dns_zilore.sh
index 4365004b54edf1b3c3ad9c126a420e365a928a67..42111025a59a525cf504185e6cd494821872ebc5 100644 (file)
@@ -73,7 +73,7 @@ dns_zilore_rm() {
     _err "Error while getting records list"
     return 1
   else
-    _record_id=$(printf "%s\n" "$response" | _egrep_o "\"record_id\":\"[^\"]+\"" | cut -d : -f 2 | tr -d \" | head -n 1)
+    _record_id=$(printf "%s\n" "$response" | _egrep_o "\"record_id\":\"[^\"]+\"" | cut -d : -f 2 | tr -d \" | _head_n 1)
     if [ -z "$_record_id" ]; then
       _err "Cannot determine _record_id"
       return 1
@@ -106,7 +106,7 @@ _get_root() {
     fi
 
     if _contains "$response" "\"$h\"" >/dev/null; then
-        _domain=$h
+      _domain=$h
       return 0
     else
       _debug "$h not found"