mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-26 13:09:29 +01:00
deb-update: add apt-get autoremove
This commit is contained in:
parent
bc4d24630b
commit
41d3ad7f9b
@ -13,6 +13,9 @@ if hash apt-get 2>/dev/null; then
|
|||||||
|
|
||||||
# If arguments like -y are passed to the script, they become "$@"
|
# If arguments like -y are passed to the script, they become "$@"
|
||||||
apt-get "$@" upgrade --with-new-pkgs
|
apt-get "$@" upgrade --with-new-pkgs
|
||||||
|
|
||||||
|
# potentially unsafe
|
||||||
|
apt-get "$@" autoremove
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Flatpak apps are sandboxed and should be safe to update automatically
|
# Flatpak apps are sandboxed and should be safe to update automatically
|
||||||
|
Loading…
Reference in New Issue
Block a user