From a28ee9e34ccc62a5a24b2294ace0382fd3ec403a Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 31 Oct 2023 14:26:51 -0400 Subject: [PATCH] Fixing bugs 2 --- src/agents.d/update-dns-namecheap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents.d/update-dns-namecheap b/src/agents.d/update-dns-namecheap index 2fddba0..1b545de 100755 --- a/src/agents.d/update-dns-namecheap +++ b/src/agents.d/update-dns-namecheap @@ -46,7 +46,7 @@ _update_dns_namecheap() { 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="$(grep oPm1 "(?<=)[^<]+" <<< $result)" + errors="$(grep -oPm1 "(?<=)[^<]+" <<< $result)" if [[ "$errors" -eq 0 ]]; then echo "DNS record ${dnsHostname}.${dnsDomain} updated successfully."