diff --git a/cd.sh b/cd.sh index c44e39a..72a7b1e 100644 --- a/cd.sh +++ b/cd.sh @@ -74,6 +74,7 @@ function cd_set_packages_configuration { cd_step "${FUNCNAME}" case "${CD_OS_NAME}" in 'debian') + export DEBIAN_FRONTEND='noninteractive' cd_write '/etc/apt/apt.conf.d/apt.conf' "\ Acquire::Check-Valid-Until True; APT::Get::Show-Versions True; @@ -109,8 +110,7 @@ function cd_update_packages_catalog { function cd_install_package { if [ "${1}" ] ; then case "${CD_OS_NAME}" in - 'debian') DEBIAN_FRONTEND='noninteractive' \ - apt-get install --yes "${1}" || exit ;; + 'debian') apt-get install --yes "${1}" || exit ;; *) exit 1 ;; esac fi