fix shfmt

This commit is contained in:
kvakanet 2020-09-12 18:53:49 +05:00 committed by GitHub
parent aecd54537e
commit 6b0d3ae952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,7 @@
ISP_DNS_URL="${ISP_DNS_URL:-$(_readaccountconf_mutable ISP_DNS_URL)}" ISP_DNS_URL="${ISP_DNS_URL:-$(_readaccountconf_mutable ISP_DNS_URL)}"
############################ Public Functions ############################## ############################ Public Functions ##############################
#Usage: dns_dnsmgr_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs" #Usage: dns_dnsmgr_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns_dnsmgr_add() dns_dnsmgr_add(){
{
fulldomain=$1 fulldomain=$1
txtvalue=$2 txtvalue=$2
_info "Using ispsystem dnsmanager api" _info "Using ispsystem dnsmanager api"
@ -87,8 +86,7 @@ dns_dnsmgr_rm() {
} }
############################ Private Functions ############################## ############################ Private Functions ##############################
_zone_find() _zone_find(){
{
_isp_domain="$1" _isp_domain="$1"
_isp_body="authinfo=${ISP_DNS_USER}:${ISP_DNS_PASS}&func=domain&filter=on&out=bjson&name=${_isp_domain}" _isp_body="authinfo=${ISP_DNS_USER}:${ISP_DNS_PASS}&func=domain&filter=on&out=bjson&name=${_isp_domain}"
response="$(_post "${_isp_body}" "${ISP_DNS_URL}")" response="$(_post "${_isp_body}" "${ISP_DNS_URL}")"
@ -100,8 +98,7 @@ _zone_find()
return 0 return 0
} }
# #
_zone_add_record() _zone_add_record(){
{
_isp_domain="$1" _isp_domain="$1"
_isp_record_name="$2" _isp_record_name="$2"
_isp_record_value="$3" _isp_record_value="$3"
@ -116,8 +113,7 @@ _zone_add_record()
return 0 return 0
} }
# #
_zone_rm_record() _zone_rm_record(){
{
_isp_domain="$1" _isp_domain="$1"
_isp_record_name="$2" _isp_record_name="$2"
_isp_record_value="$3" _isp_record_value="$3"
@ -152,4 +148,3 @@ _get_root() {
done done
return 0 return 0
} }