From 97c7105cb9db36e164a5812034bde6eb9fefd3d6 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 27 Sep 2018 17:02:49 -0600 Subject: [PATCH] Corrected [INFO] tagging to have '--' prepended for consistency --- cfddns.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index c20ffb1..bd16b66 100755 --- a/cfddns.sh +++ b/cfddns.sh @@ -253,21 +253,21 @@ if [ -z "$ipAddress" ]; then quit 201 fi fi -echo -e "${info}${stamp} [INFO] Using IP address:" \ +echo -e "${info}${stamp} -- [INFO] Using IP address:" \ "$ipAddress" >> "$logFile" ## 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 records: ${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 records: ${dnsRecords[*]}" \ - >> "$logFile" + 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")") done