From af80453e2e82f58c044705e87daa7e17c7b12fe0 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 26 Apr 2024 17:15:00 +0200 Subject: [PATCH] export --- cd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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