parent
825475a606
commit
13c474f39a
1 changed files with 0 additions and 18 deletions
18
cd.sh
18
cd.sh
|
@ -4,7 +4,6 @@ set 'cd' 'rwx'
|
||||||
|
|
||||||
cd_main () {
|
cd_main () {
|
||||||
cd_set_environment
|
cd_set_environment
|
||||||
cd_write_environment
|
|
||||||
cd_set_dns_resolving \
|
cd_set_dns_resolving \
|
||||||
'9.9.9.9'
|
'9.9.9.9'
|
||||||
cd_set_packages_repositories
|
cd_set_packages_repositories
|
||||||
|
@ -25,7 +24,6 @@ cd_main () {
|
||||||
|
|
||||||
cd_set_environment () {
|
cd_set_environment () {
|
||||||
CD_DNS_FILE='/etc/resolv.conf'
|
CD_DNS_FILE='/etc/resolv.conf'
|
||||||
CD_ENV="$(mktemp)"
|
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
'debian')
|
'debian')
|
||||||
CD_PYTHON_COMMAND='python3'
|
CD_PYTHON_COMMAND='python3'
|
||||||
|
@ -83,22 +81,6 @@ cd_set_environment () {
|
||||||
CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}"
|
CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}"
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_write_environment () {
|
|
||||||
cd_write "${CD_ENV}" "{
|
|
||||||
\"project\": {
|
|
||||||
\"branch\": \"${CD_PROJECT_BRANCH}\",
|
|
||||||
\"name\": \"${CD_PROJECT_NAME}\",
|
|
||||||
\"url\": \"${CD_PROJECT_URL}\"
|
|
||||||
},
|
|
||||||
\"projects\": {
|
|
||||||
\"group\": \"${CD_PROJECTS_GROUP}\",
|
|
||||||
\"url\": \"${CD_PROJECTS_URL}\"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
"
|
|
||||||
cat "${CD_ENV}"
|
|
||||||
}
|
|
||||||
|
|
||||||
cd_step () {
|
cd_step () {
|
||||||
if [ "${1}" ] ; then
|
if [ "${1}" ] ; then
|
||||||
CD_STEP=$((CD_STEP+1))
|
CD_STEP=$((CD_STEP+1))
|
||||||
|
|
Loading…
Reference in a new issue