diff --git a/cd.sh b/cd.sh index 028695b..c620726 100644 --- a/cd.sh +++ b/cd.sh @@ -144,6 +144,14 @@ cd_update_packages_catalog () { esac } +cd_install_packages_tools () { + cd_step "${FUNCNAME}" + case "${CD_OS_NAME}" in + 'debian') cd_install_package 'apt-utils' ;; + *) exit 1 ;; + esac +} + cd_install_package () { if [ "${1}" ] ; then case "${CD_OS_NAME}" in @@ -169,14 +177,6 @@ cd_install_git () { esac } -cd_install_packages_tools () { - cd_step "${FUNCNAME}" - case "${CD_OS_NAME}" in - 'debian') cd_install_package 'apt-utils' ;; - *) exit 1 ;; - esac -} - cd_install_python () { cd_step "${FUNCNAME}" case "${CD_OS_NAME}" in