diff --git a/cd.sh b/cd.sh index c620726..35edd87 100644 --- a/cd.sh +++ b/cd.sh @@ -152,15 +152,6 @@ cd_install_packages_tools () { esac } -cd_install_package () { - if [ "${1}" ] ; then - case "${CD_OS_NAME}" in - 'debian') apt-get install --yes "${1}" || exit ;; - *) exit 1 ;; - esac - fi -} - cd_install_ca () { cd_step "${FUNCNAME}" case "${CD_OS_NAME}" in @@ -230,6 +221,17 @@ cd_bootstrap () { "${CD_PYTHON_COMMAND}" -m "${1}" } +# + +cd_install_package () { + if [ "${1}" ] ; then + case "${CD_OS_NAME}" in + 'debian') apt-get install --yes "${1}" || exit ;; + *) exit 1 ;; + esac + fi +} + cd_step () { if [ "${1}" ] ; then CD_STEP=$((CD_STEP+1)) @@ -249,4 +251,6 @@ local text="${2}" fi } +# + cd_main "${@}"