Fix apt-get switches to not generate unexpected output

This commit is contained in:
Kaladin Light 2016-11-09 22:33:21 -05:00
parent 6997a0b9a7
commit 02bf7c0ad8

View file

@ -372,7 +372,7 @@ unattendedUpgrades() {
if (whiptail --backtitle "Security Updates" --title "Unattended Upgrades" --yesno "Do you want to enable unattended upgrades of security patches to this server?" $r $c) then
UNATTUPG="unattended-upgrades"
$SUDO apt-get -y -qq --no-install-recommends install "$UNATTUPG" > /dev/null & spinner $!
$SUDO apt-get --yes --quiet --no-install-recommends install "$UNATTUPG" > /dev/null & spinner $!
else
UNATTUPG=""
fi
@ -445,9 +445,9 @@ checkForDependencies() {
echo iptables-persistent iptables-persistent/autosave_v6 boolean false | $SUDO debconf-set-selections
fi
if [[ $i = "expect" ]]; then
$SUDO apt-get -y -qq --no-install-recommends install "$i" > /dev/null & spinner $!
$SUDO apt-get --yes --quiet --no-install-recommends install "$i" > /dev/null & spinner $!
else
$SUDO apt-get -y -qq install "$i" > /dev/null & spinner $!
$SUDO apt-get --yes --quiet install "$i" > /dev/null & spinner $!
fi
echo " done!"
else