Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 93f5e32

Browse files
author
Matthias Koeppe
committed
build/bin/sage-print-system-package-command (debian --yes): Use DEBIAN_FRONTEND=noninteractive
1 parent a9bd145 commit 93f5e32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/bin/sage-print-system-package-command

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if [ -z "$system" -o -z "$command" ]; then
4949
fi
5050
system_packages="$*"
5151
options=
52+
env=
5253
shopt -s extglob
5354
case $system:$command in
5455
homebrew*:setup-build-env)
@@ -73,8 +74,8 @@ case $system:$command in
7374
;;
7475
@(debian*|ubuntu*):*)
7576
[ "$NO_INSTALL_RECOMMENDS" = yes ] && options="$options --no-install-recommends"
76-
[ "$YES" = yes ] && options="$options --yes"
77-
[ -n "$system_packages" ] && echo "${PROMPT}${SUDO}apt-get $command $options $system_packages"
77+
[ "$YES" = yes ] && options="$options --yes" env="DEBIAN_FRONTEND=noninteractive "
78+
[ -n "$system_packages" ] && echo "${PROMPT}${SUDO}${env}apt-get $command $options $system_packages"
7879
;;
7980
@(fedora*|redhat*|centos*):install)
8081
[ "$YES" = yes ] && options="$options -y"

0 commit comments

Comments
 (0)