The TTL value is a constant, not a variable, it doesn't need the string escaping. Credit ~jrick.
1 files changed, 2 insertions(+), 2 deletions(-) M dyn_gandi.sh
M dyn_gandi.sh => dyn_gandi.sh +2 -2
@@ 1,4 1,4 @@ # echo -n "my_secret_api_key" > $HOME/.gandi.key # echo -n "my_secret_api_key" > /root/.gandi.key # dyn_gandi.sh domain subdomain DOMAIN=$1 @@ SUBDOMAIN=$2 14,7 14,7 @@ esac BODY='{ "items": [{ "rrset_type": "'"$CLASS"'", "rrset_ttl": "'"1200"'", "rrset_ttl": "1200", "rrset_values": ["'"$EGRESS_IP"'"] }] }'