Browse Source

Update dns_kas.sh

sorry for this commit.  ;)
Fix NewBeMistakes
pull/1341/head
Marco4223 5 years ago
parent
commit
a138425417
  1. 4
      dnsapi/dns_kas.sh

4
dnsapi/dns_kas.sh

@ -115,8 +115,8 @@ _check_and_save() {
# Gets back the base domain/zone and record name. # Gets back the base domain/zone and record name.
# See: https://github.com/Neilpang/acme.sh/wiki/DNS-API-Dev-Guide # See: https://github.com/Neilpang/acme.sh/wiki/DNS-API-Dev-Guide
_get_zone_and_record_name()() {
_zonen="$( cat testfile.txt | tr -d "\n\r" | tr -d " " | tr '[]' '<>' | sed "s/=>Array/\n=> Array/g" | tr ' ' '\n' | grep "domain_name" | tr '<' '\n' | grep "domain_name" | cut -d '>' -f 3)"
_get_zone_and_record_name() {
_zonen="$( echo "$response" | tr -d "\n\r" | tr -d " " | tr '[]' '<>' | sed "s/=>Array/\n=> Array/g" | tr ' ' '\n' | grep "domain_name" | tr '<' '\n' | grep "domain_name" | cut -d '>' -f 3)"
_domain="$1" _domain="$1"
if _endswith "$_domain" "."; then if _endswith "$_domain" "."; then
_domain="$(echo "$_domain" | sed 's/.$//')" _domain="$(echo "$_domain" | sed 's/.$//')"

Loading…
Cancel
Save