clean
Some checks failed
/ job (push) Failing after 4s

This commit is contained in:
Marc Beninca 2024-04-26 16:53:41 +02:00
parent 3a75085157
commit 2eec8bef61
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

12
cd.sh
View file

@ -155,6 +155,14 @@ function cd_upgrade_packages {
esac esac
} }
function cd_clean_packages_cache {
cd_step "${FUNCNAME}"
case "${CD_OS_NAME}" in
'debian') apt-get clean || exit ;;
*) exit 1 ;;
esac
}
function cd_main { function cd_main {
cd_set_dns_resolving cd_set_dns_resolving
cd_set_packages_repositories cd_set_packages_repositories
@ -167,6 +175,7 @@ function cd_main {
cd_upgrade_packages cd_upgrade_packages
cd_install_git cd_install_git
cd_install_python cd_install_python
cd_clean_packages_cache
DIRECTORY="$(mktemp --directory)" \ DIRECTORY="$(mktemp --directory)" \
|| exit || exit
@ -176,9 +185,6 @@ git clone \
"${DIRECTORY}" \ "${DIRECTORY}" \
|| exit || exit
cd_step "clean package cache"
apt-get clean \
|| exit
cd_step "bootstrap" cd_step "bootstrap"
"${DIRECTORY}/bootstrap.sh" "${DIRECTORY}/bootstrap.sh"