Made curl request quiet

This commit is contained in:
Eric Renfro 2023-10-31 14:11:08 -04:00
parent 7bba7ec9d8
commit c82847a3ae
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -44,7 +44,7 @@ _update_dns_namecheap() {
local result
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
errors="$(set -n -e 's/.*<ErrCount>\(.*\)<\/ErrCount>.*/\1/p' <<< $result)"