From 4f233cdb1928b3272718277e551da64670704eb0 Mon Sep 17 00:00:00 2001 From: stilez Date: Mon, 13 Aug 2018 14:44:23 +0000 Subject: [PATCH] yet more formatting --- dnsapi/dns_pleskxml.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/dnsapi/dns_pleskxml.sh b/dnsapi/dns_pleskxml.sh index 75d87658..e47e39f8 100644 --- a/dnsapi/dns_pleskxml.sh +++ b/dnsapi/dns_pleskxml.sh @@ -121,26 +121,26 @@ _pleskxml_newline=' # (otherwise printf repeats the string causing the API call to fail) _pleskxml_tplt_get_domain_id="%s" - # Convert domain name to a Plesk internal domain ID - # Args: - # the domain name to query +# Convert domain name to a Plesk internal domain ID +# Args: +# the domain name to query _pleskxml_tplt_add_txt_record="%sTXT%s%s" - # Adds a TXT record to a domain - # Args: - # the Plesk internal domain ID for the domain - # the "host" entry within the domain, to add this to (eg '_acme_challenge') - # the TXT record value +# Adds a TXT record to a domain +# Args: +# the Plesk internal domain ID for the domain +# the "host" entry within the domain, to add this to (eg '_acme_challenge') +# the TXT record value _pleskxml_tplt_rmv_dns_record="%s" - # Adds a TXT record to a domain - # Args: - # the Plesk internal ID for the dns record to delete +# Adds a TXT record to a domain +# Args: +# the Plesk internal ID for the dns record to delete _pleskxml_tplt_get_dns_records="%s" - # Gets all DNS records for a Plesk domain ID - # Args: - # the domain id to query +# Gets all DNS records for a Plesk domain ID +# Args: +# the domain id to query ############ Define public functions ##################### @@ -812,7 +812,7 @@ _pleskxml_rmv_txt_record() { | grep -F "${2:-}." \ | grep -F "${3:-}" \ | sed -E 's/(^[[:space:]]+|[[:space:]]+$)//g' \ -32m | tr -d '\n' + | tr -d '\n' )" # Run 2 separate GREP filters, because the host and value order isn't mandatory in the API return data # ands this avoids regex and escaping which is easier