cd_dns
This commit is contained in:
parent
5b3122aaf2
commit
8718ba1e57
1 changed files with 2 additions and 5 deletions
7
cd.sh
7
cd.sh
|
@ -1,10 +1,9 @@
|
||||||
#! /usr/bin/env sh
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
# defaults
|
# defaults
|
||||||
CD_DEFAULT_DNS="\
|
[ "${CD_DNS}" ] || CD_DNS="\
|
||||||
9.9.9.9 \
|
9.9.9.9 \
|
||||||
"
|
"
|
||||||
|
|
||||||
[ "${CD_GIT_CHILD}" ] || CD_GIT_CHILD="cd"
|
[ "${CD_GIT_CHILD}" ] || CD_GIT_CHILD="cd"
|
||||||
[ "${CD_GIT_PARENT}" ] || CD_GIT_PARENT="rwx"
|
[ "${CD_GIT_PARENT}" ] || CD_GIT_PARENT="rwx"
|
||||||
|
|
||||||
|
@ -441,11 +440,9 @@ cd_set_https_verification_off () {
|
||||||
|
|
||||||
cd_set_dns_resolving () {
|
cd_set_dns_resolving () {
|
||||||
local server
|
local server
|
||||||
local servers
|
|
||||||
local text=""
|
local text=""
|
||||||
cd_step "Set DNS resolving"
|
cd_step "Set DNS resolving"
|
||||||
[ "${CD_DNS}" ] && servers="${CD_DNS}" || servers="${CD_DEFAULT_DNS}"
|
for server in ${CD_DNS} ; do
|
||||||
for server in ${servers} ; do
|
|
||||||
text="${text}nameserver ${server}
|
text="${text}nameserver ${server}
|
||||||
"
|
"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue