mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-10-31 19:41:45 +00:00
Changed 'grep -E' to '_egrep_o'
This commit is contained in:
parent
eba788e8c9
commit
0afabc60ae
@ -213,7 +213,7 @@ deleteRecord() {
|
|||||||
result="$(_H1="$_H1" _H2="$_H2" _get "$DNSServices_API/service/$rootZoneServiceID/dns/$rootZoneDomainID")"
|
result="$(_H1="$_H1" _H2="$_H2" _get "$DNSServices_API/service/$rootZoneServiceID/dns/$rootZoneDomainID")"
|
||||||
recordInfo="$(echo "$result" | tr '}' '\n' | grep "\"name\":\"${fulldomain}" | grep "\"content\":\"" | grep "${txtvalue}")"
|
recordInfo="$(echo "$result" | tr '}' '\n' | grep "\"name\":\"${fulldomain}" | grep "\"content\":\"" | grep "${txtvalue}")"
|
||||||
_debug2 deleteRecord "recordInfo=$recordInfo"
|
_debug2 deleteRecord "recordInfo=$recordInfo"
|
||||||
recordID="$(echo "$recordInfo" | tr ',' '\n' | grep -E "\"id\":\"[0-9]+\"" | cut -d'"' -f4)"
|
recordID="$(echo "$recordInfo" | tr ',' '\n' | _egrep_o() "\"id\":\"[0-9]+\"" | cut -d'"' -f4)"
|
||||||
|
|
||||||
if [ -z "$recordID" ]; then
|
if [ -z "$recordID" ]; then
|
||||||
_info "Record $fulldomain TXT $txtvalue not found or already deleted"
|
_info "Record $fulldomain TXT $txtvalue not found or already deleted"
|
||||||
|
Loading…
Reference in New Issue
Block a user