From 41d3ad7f9bc44058802ab563e1ca1638b61cc3ff Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 10 Jun 2020 23:37:54 +0300 Subject: [PATCH] deb-update: add apt-get autoremove --- bash/deb-update.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index 70cff7e..3e367c9 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -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