mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
Fix indentation.
This commit is contained in:
parent
ef7b51beb7
commit
e5f69f0815
@ -26,8 +26,8 @@ dns_yandex_add() {
|
||||
_debug "Record_ids: $record_ids"
|
||||
|
||||
if [ ! -z "$record_ids" ]; then
|
||||
_err "Remove all existing $subdomain records from $domain"
|
||||
return 1
|
||||
_err "Remove all existing $subdomain records from $domain"
|
||||
return 1
|
||||
fi
|
||||
|
||||
data="domain=${domain}&type=TXT&subdomain=${subdomain}&ttl=300&content=${txtvalue}"
|
||||
@ -36,8 +36,8 @@ dns_yandex_add() {
|
||||
_debug "Result: $result"
|
||||
|
||||
if ! _contains "$result" '"success":"ok"'; then
|
||||
_err "Can't add $subdomain to $domain"
|
||||
return 1
|
||||
_err "Can't add $subdomain to $domain"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ _PDD_get_domain() {
|
||||
_debug "Result: $result"
|
||||
|
||||
if _contains "$result" '"success":"ok"'; then
|
||||
return 0
|
||||
return 0
|
||||
fi
|
||||
subdomain_start=$(_math $subdomain_start + 1)
|
||||
done
|
||||
@ -116,7 +116,7 @@ _PDD_get_record_ids() {
|
||||
_debug "Result: $result"
|
||||
|
||||
if ! _contains "$result" '"success":"ok"'; then
|
||||
return 1
|
||||
return 1
|
||||
fi
|
||||
|
||||
record_ids=$(echo "$result" | _egrep_o "{[^{]*\"subdomain\":\"${subdomain}\"[^}]*}" | sed -n -e 's#.*"record_id": \([0-9]*\).*#\1#p')
|
||||
|
Loading…
Reference in New Issue
Block a user