Curl, stay silent
This commit is contained in:
parent
c82847a3ae
commit
c211996036
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ _update_dns_namecheap() {
|
|||
local result
|
||||
local errors
|
||||
|
||||
result="$(curl -q "https://dynamicdns.park-your-domain.com/update?host=${dnsHostname}&domain=${dnsDomain}&password=${dnsToken}&ip=${dnsIP}" | grep ErrCount)"
|
||||
result="$(curl -qs "https://dynamicdns.park-your-domain.com/update?host=${dnsHostname}&domain=${dnsDomain}&password=${dnsToken}&ip=${dnsIP}" | grep ErrCount)"
|
||||
if [[ $? -eq 0 ]]; then
|
||||
errors="$(set -n -e 's/.*<ErrCount>\(.*\)<\/ErrCount>.*/\1/p' <<< $result)"
|
||||
|
||||
|
|
Loading…
Reference in a new issue