From 307e0a34ed15b056d2d36d16c84f846e0faf1087 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 26 Apr 2024 16:44:34 +0200 Subject: [PATCH] install_package --- cd.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cd.sh b/cd.sh index a0ad71d..dc240be 100644 --- a/cd.sh +++ b/cd.sh @@ -106,6 +106,16 @@ function cd_update_packages_catalog { esac } +function cd_install_package { +if [ "${1}" ] ; then + cd_step "${FUNCNAME}" + case "${CD_OS_NAME}" in + 'debian') apt-get install --yes "${1}" || exit ;; + *) exit 1 ;; + esac +fi +} + function cd_install_ca { cd_step "${FUNCNAME}" case "${CD_OS_NAME}" in