From 8718ba1e579a9dfa9de09b83773a35fe67d067d2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 2 Jun 2024 15:55:53 +0200 Subject: [PATCH] cd_dns --- cd.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cd.sh b/cd.sh index a8a9701..fa36dea 100644 --- a/cd.sh +++ b/cd.sh @@ -1,10 +1,9 @@ #! /usr/bin/env sh # defaults -CD_DEFAULT_DNS="\ +[ "${CD_DNS}" ] || CD_DNS="\ 9.9.9.9 \ " - [ "${CD_GIT_CHILD}" ] || CD_GIT_CHILD="cd" [ "${CD_GIT_PARENT}" ] || CD_GIT_PARENT="rwx" @@ -441,11 +440,9 @@ cd_set_https_verification_off () { cd_set_dns_resolving () { local server -local servers local text="" cd_step "Set DNS resolving" - [ "${CD_DNS}" ] && servers="${CD_DNS}" || servers="${CD_DEFAULT_DNS}" - for server in ${servers} ; do + for server in ${CD_DNS} ; do text="${text}nameserver ${server} " done