From 65000d3245fa3af8908e1aaae65a855c71eac806 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Mon, 11 Jan 2016 17:35:30 -0800 Subject: [PATCH] Non-interactive installation on debian (respect -y flag!) --- util/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/install.sh b/util/install.sh index fbc2196..e764656 100755 --- a/util/install.sh +++ b/util/install.sh @@ -36,8 +36,9 @@ if [ "$ARCH" = "i686" ]; then ARCH="i386"; fi test -e /etc/debian_version && DIST="Debian" grep Ubuntu /etc/lsb-release &> /dev/null && DIST="Ubuntu" if [ "$DIST" = "Ubuntu" ] || [ "$DIST" = "Debian" ]; then - install='sudo apt-get -y install' - remove='sudo apt-get -y remove' + # Truly non-interactive apt-get installation + install='sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q install' + remove='sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q remove' pkginst='sudo dpkg -i' # Prereqs for this script if ! which lsb_release &> /dev/null; then