Silence distro package install a bit

Use apt-get -q to silence package install a bit, -q is intented for
logging purposes. Use -qq for the update part.

Also, redirect error output test for apt-get to dev/null to avoid
on non apt-get systems a:
"line 40: apt-get: command not found"

Change-Id: Ib25256632fb9c5c6a57a71bcb9f76dc70f5af657
This commit is contained in:
Andreas Jaeger 2016-03-26 17:38:47 +01:00
parent 0614f57b1c
commit b28913b9c4

View File

@ -37,10 +37,10 @@ until $BINDEP -b -f $PACKAGES ; do
# don't abort inside the loop, we check for the desired outcome
set +e
if apt-get -v >/dev/null ; then
sudo apt-get update
if apt-get -v >/dev/null 2>&1 ; then
sudo apt-get -qq update
sudo PATH=/usr/sbin:/sbin:$PATH DEBIAN_FRONTEND=noninteractive \
apt-get --option "Dpkg::Options::=--force-confold" \
apt-get -q --option "Dpkg::Options::=--force-confold" \
--assume-yes install `$BINDEP -b -f $PACKAGES`
else
sudo PATH=/usr/sbin:/sbin:$PATH $YUM install -y \