Add "--no-install-recommends"

This commit is contained in:
dontobi
2023-07-07 09:28:06 +02:00
parent ae42123a2f
commit 2359e5118c

View File

@@ -47,7 +47,7 @@ if [[ "$1" == "-install" ]]; then
if ! dpkg -s "$i" >/dev/null 2>&1; then
echo -n "$i is not installed. Installing... "
check_package_preq >> /opt/scripts/setup_packages.log 2>&1
if ! apt-get -q -y install "$i" >> /opt/scripts/setup_packages.log 2>&1; then
if ! apt-get -q -y --no-install-recommends install "$i" >> /opt/scripts/setup_packages.log 2>&1; then
echo "Failed."
echo "For more details see \"/opt/scripts/setup_packages.log\"."
else