Przeglądaj źródła

Fixed debug log to prevent globbing and word splitting.

lufi42 3 lat temu
rodzic
commit
55a55e9f74
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      dnsapi/dns_pleskxml.sh

+ 2 - 2
dnsapi/dns_pleskxml.sh

@@ -157,7 +157,7 @@ dns_pleskxml_rm() {
       grep "<host>${fulldomain}.</host>" |
       grep "<value>${txtvalue}</value>"
   )"
-  
+
   _debug "Got line for <host>${fulldomain}.</host> and <value>${txtvalue}</value>:" 
   _debug "$recline"
 
@@ -167,7 +167,7 @@ dns_pleskxml_rm() {
   )"
 
   _debug "Got id from line:" 
-  _debug $recid
+  _debug "$recid"
 
   if ! _value "$recid" | grep '^[0-9]\{1,\}$' >/dev/null; then
     _err "DNS records for root domain '${root_domain_name}' (Plesk ID ${root_domain_id}) + host '${sub_domain_name}' do not contain the TXT record '${txtvalue}'"