From 4230c23f2c801919ad62963bb8b5c4ab6d9b47ec Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 27 Apr 2024 21:42:29 +0200 Subject: [PATCH] upgrade_packages --- cd.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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