mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 15:02:03 +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"
|
_debug "Record_ids: $record_ids"
|
||||||
|
|
||||||
if [ ! -z "$record_ids" ]; then
|
if [ ! -z "$record_ids" ]; then
|
||||||
_err "Remove all existing $subdomain records from $domain"
|
_err "Remove all existing $subdomain records from $domain"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
data="domain=${domain}&type=TXT&subdomain=${subdomain}&ttl=300&content=${txtvalue}"
|
data="domain=${domain}&type=TXT&subdomain=${subdomain}&ttl=300&content=${txtvalue}"
|
||||||
@ -36,8 +36,8 @@ dns_yandex_add() {
|
|||||||
_debug "Result: $result"
|
_debug "Result: $result"
|
||||||
|
|
||||||
if ! _contains "$result" '"success":"ok"'; then
|
if ! _contains "$result" '"success":"ok"'; then
|
||||||
_err "Can't add $subdomain to $domain"
|
_err "Can't add $subdomain to $domain"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ _PDD_get_domain() {
|
|||||||
_debug "Result: $result"
|
_debug "Result: $result"
|
||||||
|
|
||||||
if _contains "$result" '"success":"ok"'; then
|
if _contains "$result" '"success":"ok"'; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
subdomain_start=$(_math $subdomain_start + 1)
|
subdomain_start=$(_math $subdomain_start + 1)
|
||||||
done
|
done
|
||||||
@ -116,7 +116,7 @@ _PDD_get_record_ids() {
|
|||||||
_debug "Result: $result"
|
_debug "Result: $result"
|
||||||
|
|
||||||
if ! _contains "$result" '"success":"ok"'; then
|
if ! _contains "$result" '"success":"ok"'; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
record_ids=$(echo "$result" | _egrep_o "{[^{]*\"subdomain\":\"${subdomain}\"[^}]*}" | sed -n -e 's#.*"record_id": \([0-9]*\).*#\1#p')
|
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