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 Dec 6, 2020
1 parent a9bd145 commit 93f5e32
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 @@ -49,6 +49,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 @@ -73,8 +74,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 93f5e32

Please sign in to comment.