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 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" 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 else
UNATTUPG="" UNATTUPG=""
fi fi
@ -445,9 +445,9 @@ checkForDependencies() {
echo iptables-persistent iptables-persistent/autosave_v6 boolean false | $SUDO debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v6 boolean false | $SUDO debconf-set-selections
fi fi
if [[ $i = "expect" ]]; then 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 else
$SUDO apt-get -y -qq install "$i" > /dev/null & spinner $! $SUDO apt-get --yes --quiet install "$i" > /dev/null & spinner $!
fi fi
echo " done!" echo " done!"
else else