1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-17 13:50:33 +00:00

Merge pull request #3205 from MichaIng/patch-5

Reduce apt-get install verbosity
This commit is contained in:
Adam Warner 2020-04-19 15:28:48 +01:00 committed by GitHub
commit d18a8b1b8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,7 @@ if is_command apt-get ; then
# A variable to store the command used to update the package cache
UPDATE_PKG_CACHE="${PKG_MANAGER} update"
# An array for something...
PKG_INSTALL=("${PKG_MANAGER}" --yes --no-install-recommends install)
PKG_INSTALL=("${PKG_MANAGER}" -qq --no-install-recommends install)
# grep -c will return 1 retVal on 0 matches, block this throwing the set -e with an OR TRUE
PKG_COUNT="${PKG_MANAGER} -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true"
# Some distros vary slightly so these fixes for dependencies may apply