deb-update: add apt-get autoremove

This commit is contained in:
Aminda Suomalainen 2020-06-10 23:37:54 +03:00
parent bc4d24630b
commit 41d3ad7f9b
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -13,6 +13,9 @@ if hash apt-get 2>/dev/null; then
# If arguments like -y are passed to the script, they become "$@"
apt-get "$@" upgrade --with-new-pkgs
# potentially unsafe
apt-get "$@" autoremove
fi
# Flatpak apps are sandboxed and should be safe to update automatically