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