diff --git a/cd.sh b/cd.sh index e55753c..a121c62 100644 --- a/cd.sh +++ b/cd.sh @@ -168,6 +168,14 @@ cd_set_https_verification_on () { esac } +cd_upgrade_packages () { + cd_step "${FUNCNAME}" + case "${CD_OS_NAME}" in + 'debian') apt-get upgrade --yes || exit ;; + *) exit 1 ;; + esac +} + cd_install_git () { cd_step "${FUNCNAME}" case "${CD_OS_NAME}" in @@ -184,14 +192,6 @@ cd_install_python () { esac } -cd_upgrade_packages () { - cd_step "${FUNCNAME}" - case "${CD_OS_NAME}" in - 'debian') apt-get upgrade --yes || exit ;; - *) exit 1 ;; - esac -} - cd_clean_packages_cache () { cd_step "${FUNCNAME}" case "${CD_OS_NAME}" in