mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 13:12:49 +00:00
Fix: Make record_id extraction independent of JSON key order
This commit is contained in:
parent
a6488ff9ac
commit
2f1ca949f0
@ -75,7 +75,9 @@ dns_yandex360_rm() {
|
|||||||
|
|
||||||
record_id=$(
|
record_id=$(
|
||||||
echo "$response" |
|
echo "$response" |
|
||||||
sed -En 's/.*"recordId":([0-9]+).*"text":"'"${txtvalue}"'".*$/\1/p'
|
_egrep_o '\{[^}]*'"${txtvalue}"'[^}]*\}' |
|
||||||
|
_egrep_o '"recordId":[0-9]*' |
|
||||||
|
cut -d':' -f2
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ -z "$record_id" ]; then
|
if [ -z "$record_id" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user