install_package
Some checks failed
/ job (push) Failing after 3s

This commit is contained in:
Marc Beninca 2024-04-26 16:44:34 +02:00
parent 0f68d49e46
commit 307e0a34ed
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

10
cd.sh
View file

@ -106,6 +106,16 @@ function cd_update_packages_catalog {
esac 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 { function cd_install_ca {
cd_step "${FUNCNAME}" cd_step "${FUNCNAME}"
case "${CD_OS_NAME}" in case "${CD_OS_NAME}" in