From d2f060b6a151a7a3dc93354b0607c08158eaeeed Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 8 Jun 2024 17:20:13 +0200 Subject: [PATCH] cd_set_dns_resolving --- cd.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cd.sh b/cd.sh index 8823326..eaba5d2 100644 --- a/cd.sh +++ b/cd.sh @@ -454,14 +454,13 @@ cd_set_https_verification_off () { } cd_set_dns_resolving () { -local server -local text="" cd_step "Set DNS resolving" - for server in ${CD_DNS} ; do - text="${text}nameserver ${server} + for cd_set_dns_resolving__server in ${CD_DNS} ; do + cd_set_dns_resolving__text="${cd_set_dns_resolving__text}\ +nameserver ${cd_set_dns_resolving__server} " done - cd_write "${CD_DNS_FILE}" "${text}" + cd_write "${CD_DNS_FILE}" "${cd_set_dns_resolving__text}" } cd_update_packages_catalog () {