diff --git a/cd.sh b/cd.sh index 878b581..028695b 100644 --- a/cd.sh +++ b/cd.sh @@ -81,25 +81,6 @@ cd_set_environment () { CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}" } -cd_step () { - if [ "${1}" ] ; then - CD_STEP=$((CD_STEP+1)) - echo " - ${CD_STEP} ${1} -" - fi -} - -cd_write () { -local file="${1}" -local text="${2}" - if [ "${file}" ] ; then - echo -n "${text}" \ - > "${file}" \ - || exit - fi -} - cd_set_dns_resolving () { local server local text='' @@ -249,4 +230,23 @@ cd_bootstrap () { "${CD_PYTHON_COMMAND}" -m "${1}" } +cd_step () { + if [ "${1}" ] ; then + CD_STEP=$((CD_STEP+1)) + echo " + ${CD_STEP} ${1} +" + fi +} + +cd_write () { +local file="${1}" +local text="${2}" + if [ "${file}" ] ; then + echo -n "${text}" \ + > "${file}" \ + || exit + fi +} + cd_main "${@}"