mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 02:11:45 +00:00
Replace grep -A.
This commit is contained in:
parent
e22c5ea800
commit
ec1f9841b2
@ -150,7 +150,7 @@ _get_record_id() {
|
|||||||
response="$(_get "$KAS_Api$params")"
|
response="$(_get "$KAS_Api$params")"
|
||||||
_debug2 "response" "$response"
|
_debug2 "response" "$response"
|
||||||
|
|
||||||
_record_id="$(echo "$response" | grep -A 4 "$_record_name" | grep "record_id" | cut -f2 -d">" | xargs)"
|
_record_id="$(echo "$response" | tr -d "\n\r" | sed "s/=> Array/\n=> Array/g" | tr -d " " | tr '[]' '<>' | grep "=>$_record_name<" | grep '>TXT<' | tr '<' '\n' | grep record_id | cut -d '>' -f 3)"
|
||||||
_debug2 _record_id "$_record_id"
|
_debug2 _record_id "$_record_id"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user