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 () {