From d796bf6f637838372bb117310d7d36eb3d97148b Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 9 May 2021 09:47:41 -0600 Subject: [PATCH] fix: wrong variable referenced for list to update --- cfddns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfddns.sh b/cfddns.sh index de1cd05..ed86852 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -409,7 +409,7 @@ fi fi # iterate DNS records to update - dnsRecordsToUpdate="$(printf '%s' "${1}" | sed "s/${dnsSeparator}*$//")$dnsSeparator" + dnsRecordsToUpdate="$(printf '%s' "${dnsRecords}" | sed "s/${dnsSeparator}*$//")$dnsSeparator" while [ -n "$dnsRecordsToUpdate" ] && [ "$dnsRecordsToUpdate" != "$dnsSeparator" ]; do record="${dnsRecordsToUpdate%%${dnsSeparator}*}" dnsRecordsToUpdate="${dnsRecordsToUpdate#*${dnsSeparator}}"