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

Commit

Permalink
build/bin/sage-print-system-package-command (debian --yes): Use DEBIA…
Browse files Browse the repository at this point in the history
…N_FRONTEND=noninteractive
  • Loading branch information
Matthias Koeppe committed Nov 22, 2020
1 parent ff34897 commit e9e5d47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/bin/sage-print-system-package-command
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if [ -z "$system" -o -z "$command" ]; then
fi
system_packages="$*"
options=
env=
shopt -s extglob
case $system:$command in
homebrew*:setup-build-env)
Expand All @@ -64,8 +65,8 @@ case $system:$command in
;;
@(debian*|ubuntu*):*)
[ "$NO_INSTALL_RECOMMENDS" = yes ] && options="$options --no-install-recommends"
[ "$YES" = yes ] && options="$options --yes"
[ -n "$system_packages" ] && echo "${PROMPT}${SUDO}apt-get $command $options $system_packages"
[ "$YES" = yes ] && options="$options --yes" env="DEBIAN_FRONTEND=noninteractive "
[ -n "$system_packages" ] && echo "${PROMPT}${SUDO}${env}apt-get $command $options $system_packages"
;;
@(fedora*|redhat*|centos*):install)
[ "$YES" = yes ] && options="$options -y"
Expand Down

0 comments on commit e9e5d47

Please sign in to comment.