mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 14:12:43 +00:00
Incorporated changes after code analasys.
This commit is contained in:
parent
17fb247086
commit
bcfc56323f
@ -217,7 +217,7 @@ _dns_cpaneldns_get_record() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if $response; then
|
if $response; then
|
||||||
recordlist="$(echo "$response" | tr '{' "\n" | grep "$record" | _head_n 1 )"
|
recordlist="$(echo "$response" | tr '{' "\n" | grep "$record" | _head_n 1)"
|
||||||
record_id="$(echo "$recordlist" | tr ',' "\n" | grep -E '^"line"' | sed -re 's/^\"line\"\:\"([0-9]+)\"$/\1/g' | cut -d ":" -f 2)"
|
record_id="$(echo "$recordlist" | tr ',' "\n" | grep -E '^"line"' | sed -re 's/^\"line\"\:\"([0-9]+)\"$/\1/g' | cut -d ":" -f 2)"
|
||||||
echo "$record_id"
|
echo "$record_id"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user