From c7618c7a4b1ff0e269b3c238c71eabc530e79e37 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 25 Sep 2018 18:39:23 -0600 Subject: [PATCH] Changed logfile notation for IP4 vs IP6 hostname list --- cfddns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index 3861277..c2f7a27 100755 --- a/cfddns.sh +++ b/cfddns.sh @@ -261,13 +261,13 @@ echo -e "${info}${stamp} [INFO] Using IP address:" \ ## Check if desired record(s) exist at CloudFlare # perform checks on A or AAAA records based on invocation options if [ $ip4 -eq 1 ]; then - echo -e "${normal}${stamp}[INFO] Updating A: ${dnsRecords[*]}" \ + echo -e "${normal}${stamp}[INFO] Updating A records: ${dnsRecords[*]}" \ >> "$logFile" for cfLookup in "${dnsRecords[@]}"; do cfRecords+=("$(curl -s -X GET "https://api.cloudflare.com/client/v4/zones/${cfDetails[2]}/dns_records?name=$cfLookup&type=A" -H "X-Auth-Email: ${cfDetails[0]}" -H "X-Auth-Key: ${cfDetails[1]}" -H "Content-Type: application/json")") done elif [ $ip6 -eq 1 ]; then - echo -e "${normal}${stamp}[INFO] Updating AAAA: ${dnsRecords[*]})" \ + echo -e "${normal}${stamp}[INFO] Updating AAAA records: ${dnsRecords[*]})" \ >> "$logFile" for cfLookup in "${dnsRecords[@]}"; do cfRecords+=("$(curl -s -X GET "https://api.cloudflare.com/client/v4/zones/${cfDetails[2]}/dns_records?name=$cfLookup&type=AAAA" -H "X-Auth-Email: ${cfDetails[0]}" -H "X-Auth-Key: ${cfDetails[1]}" -H "Content-Type: application/json")")