mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-29 19:32:45 +00:00
fix regex of matching hetzner dns api error responses
This commit is contained in:
parent
0ae80272fb
commit
6c555cb666
2
dnsapi/dns_hetzner.sh
Normal file → Executable file
2
dnsapi/dns_hetzner.sh
Normal file → Executable file
@ -212,7 +212,7 @@ _get_root() {
|
||||
_response_has_error() {
|
||||
unset _response_error
|
||||
|
||||
err_part="$(echo "$response" | _egrep_o '"error":{[^}]*}')"
|
||||
err_part="$(echo "$response" | _egrep_o '"error":\{[^\}]*\}')"
|
||||
|
||||
if [ -n "$err_part" ]; then
|
||||
err_code=$(echo "$err_part" | _egrep_o '"code":[0-9]+' | cut -d : -f 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user