From 5d2f6dbf7f74695a8b47156c77da98c2b868c51f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 27 Apr 2024 21:38:43 +0200 Subject: [PATCH] install_package --- cd.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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 "${@}"