mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 06:52:37 +00:00
Update dns_kas.sh
sorry for this commit. ;) Fix NewBeMistakes
This commit is contained in:
parent
99c47dd50a
commit
a138425417
@ -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/.$//')"
|
||||||
|
Loading…
Reference in New Issue
Block a user