mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
fix: fix solaris sed and grep issue
This commit is contained in:
parent
5d0657c49a
commit
e35ef75949
@ -144,7 +144,7 @@ _add_record() {
|
|||||||
response=$(_get "${dns_api}/v2/zones/${zoneid}/recordsets?name=${_domain}")
|
response=$(_get "${dns_api}/v2/zones/${zoneid}/recordsets?name=${_domain}")
|
||||||
|
|
||||||
_debug "${response}"
|
_debug "${response}"
|
||||||
_exist_record=$(echo "${response}" | sed ':a;N;$!ba;s/\n/ /g' | grep -o '"records":[^]]*' | sed 's/\"records\"\:\[//g')
|
_exist_record=$(echo "${response}" | sed -e ':a' -e 'N;$!ba;' -e 's/\n/ /g' | _egrep_o '"records":[^]]*' | sed 's/\"records\"\:\[//g')
|
||||||
_debug "${_exist_record}"
|
_debug "${_exist_record}"
|
||||||
|
|
||||||
# Check if record exist
|
# Check if record exist
|
||||||
|
Loading…
Reference in New Issue
Block a user