This commit is contained in:
Marc Beninca 2024-06-02 15:55:53 +02:00
parent 5b3122aaf2
commit 8718ba1e57
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

7
cd.sh
View file

@ -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