diff --git a/src/agents.d/update-dns-linode-v4 b/src/agents.d/update-dns-linode-v4 index 5a86809..66108ef 100755 --- a/src/agents.d/update-dns-linode-v4 +++ b/src/agents.d/update-dns-linode-v4 @@ -29,7 +29,7 @@ _update_dns_linode_v4_get_domain() { while read -r response do - if [[ -n "$(echo "$response" | jq "select(.errors != null)")" ]] + if [[ -n "$(echo "$response" | jq 'select(.errors != null)')" ]] then return 1 fi @@ -46,7 +46,7 @@ _update_dns_linode_v4_get_domain() { return 1 fi - domain_id="$(sed -e 's/^"//' -e 's/"$//' <<<"$(echo "$response" | jq --arg domain="$h" '.data[] | select(.domain==$domain).id')")" + domain_id="$(sed -e 's/^"//' -e 's/"$//' <<<"$(echo "$response" | jq --arg domain "$h" '.data[] | select(.domain==$domain).id')")" if [[ -n "$domain_id" ]] then @@ -132,6 +132,6 @@ if _update_dns_linode_v4_get_domain; then fi fi else - logerr "ERROR: Cannot find domain in DigitalOcean DNS API" + logerr "ERROR: Cannot find domain in Linode DNS API" exit 99 fi