Curl, stay silent

This commit is contained in:
Eric Renfro 2023-10-31 14:12:45 -04:00
parent c82847a3ae
commit c211996036
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -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)"