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