diff --git a/cd.sh b/cd.sh index 556039d..878b581 100644 --- a/cd.sh +++ b/cd.sh @@ -4,7 +4,6 @@ set 'cd' 'rwx' cd_main () { cd_set_environment - cd_write_environment cd_set_dns_resolving \ '9.9.9.9' cd_set_packages_repositories @@ -25,7 +24,6 @@ cd_main () { cd_set_environment () { CD_DNS_FILE='/etc/resolv.conf' - CD_ENV="$(mktemp)" case "${CD_OS_NAME}" in 'debian') CD_PYTHON_COMMAND='python3' @@ -83,22 +81,6 @@ cd_set_environment () { 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 () { if [ "${1}" ] ; then CD_STEP=$((CD_STEP+1))