From 77613a34a486a9aa305da132bbc14e2f0c43fad2 Mon Sep 17 00:00:00 2001 From: Paul FREAKN Baker Date: Tue, 20 Jul 2021 11:24:27 -0600 Subject: [PATCH] Fixing potential globbing matching in condition https://github.com/koalaman/shellcheck/wiki/SC2053 --- cloudflare-template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare-template.sh b/cloudflare-template.sh index c430391..a87fa38 100644 --- a/cloudflare-template.sh +++ b/cloudflare-template.sh @@ -48,7 +48,7 @@ fi ########################################### old_ip=$(echo "$record" | grep -Po '(?<="content":")[^"]*' | head -1) # Compare if they're the same -if [[ $ip == $old_ip ]]; then +if [[ $ip == "${old_ip}" ]]; then logger "DDNS Updater: IP ($ip) for ${record_name} has not changed." exit 0 fi