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

This commit is contained in:
Marc Beninca 2024-04-27 21:38:43 +02:00
parent 260c86bf92
commit 5d2f6dbf7f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

22
cd.sh
View file

@ -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 "${@}"