From 9be2100d556be3ccd944a266fa5a748e7bc72a3d Mon Sep 17 00:00:00 2001 From: Andrew Mulholland Date: Fri, 11 Jul 2014 14:07:13 +0100 Subject: [PATCH] Add -y to apt-get install Means no random stops in middle of script waiting for user to accept the install of a package --- setup_spindle_environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_spindle_environment b/setup_spindle_environment index 8043a54..2b62058 100755 --- a/setup_spindle_environment +++ b/setup_spindle_environment @@ -19,7 +19,7 @@ show_usage() { ensure_installed() { for PKG in "$@"; do - dpkg --get-selections "$PKG" | grep -q "[[:space:]]install$" || apt-get install "$PKG" || die "Failed to install $PKG" + dpkg --get-selections "$PKG" | grep -q "[[:space:]]install$" || apt-get install -y "$PKG" || die "Failed to install $PKG" done }