mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-14 17:12:44 +00:00
SED does not handle newlines that well, one-line the reply before working on it.
This commit is contained in:
parent
19ade07a1d
commit
6fe8b2af19
@ -159,7 +159,7 @@ _successful_update() {
|
|||||||
_findentry() {
|
_findentry() {
|
||||||
#returns id of dns entry, if it exists
|
#returns id of dns entry, if it exists
|
||||||
_myget "action=dns_primary_changeDNSsetup&user_domain=$_domain"
|
_myget "action=dns_primary_changeDNSsetup&user_domain=$_domain"
|
||||||
_id=$(echo "$_result" | _egrep_o "<td>$1</td>\s*<td>$2</td>[^?]*[^&]*&id=[^&]*" | sed 's/^.*=//')
|
_id=$(echo "$_result" | tr '\n' ' ' | _egrep_o "<td>$1</td>\s*<td>$2</td>[^?]*[^&]*&id=[^&]*" | sed 's/^.*=//')
|
||||||
if [ -n "$_id" ]; then
|
if [ -n "$_id" ]; then
|
||||||
_debug "Entry found with _id=$_id"
|
_debug "Entry found with _id=$_id"
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user