1
0
Fork 0
mirror of https://github.com/tunix/digitalocean-dyndns synced 2024-12-22 21:09:52 +00:00

Compare commits

..

No commits in common. "7b38d97e38436d4a75501e1fbf7ec4632c82a75e" and "0ed4ab05cfcbf86d44d0b3bdc4b0776b9b64583a" have entirely different histories.

View file

@ -36,16 +36,10 @@ while ( true ); do
echo "Found IP address $ip"
if [[ -n $ip ]]; then
# disable glob expansion
set -f
for sub in ${NAME//;/ }; do
record_id=$(echo $domain_records| jq ".domain_records[] | select(.type == \"A\" and .name == \"$sub\") | .id")
record_data=$(echo $domain_records| jq -r ".domain_records[] | select(.type == \"A\" and .name == \"$sub\") | .data")
# re-enable glob expansion
set +f
test -z $record_id && echo "No record found with '$sub' domain name!" && continue
if [[ "$ip" != "$record_data" ]]; then