Update dns_kas.sh

sorry for this commit.  ;)
Fix NewBeMistakes
This commit is contained in:
Marco4223 2019-12-28 23:42:46 +01:00
parent 99c47dd50a
commit a138425417

View File

@ -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()() { _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)" _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/.$//')"