mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 02:42:45 +00:00
dns_dynu: Fix egrep regexp
Tested with busybox 1.28.3 in OpenWrt: # echo '{abc}' | egrep -o "{[^{]*}" egrep: bad regex '{[^{]*}': Repetition not preceded by valid expression # echo '{abc}' | egrep -o "\{[^{]*\}" {abc}
This commit is contained in:
parent
d0d10bc6e7
commit
ebdddf9fa7
@ -161,7 +161,7 @@ _get_recordid() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
_dns_record_id=$(printf "%s" "$response" | _egrep_o "{[^}]*}" | grep "\"text_data\":\"$txtvalue\"" | _egrep_o ",[^,]*," | grep ',"id":' | tr -d ",," | cut -d : -f 2)
|
||||
_dns_record_id=$(printf "%s" "$response" | _egrep_o "\{[^}]*\}" | grep "\"text_data\":\"$txtvalue\"" | _egrep_o ",[^,]*," | grep ',"id":' | tr -d ",," | cut -d : -f 2)
|
||||
|
||||
return 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user