deb-update.bash: add dnf

This commit is contained in:
Aminda Suomalainen 2021-01-24 11:04:39 +02:00
parent 93c0a8d536
commit 86d0088a4f
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ if hash apt-get 2>/dev/null; then
apt-get "$@" autoremove
fi
if hash dnf 2>/dev/null; then
# If arguments like -y are passed to the script, they become "$@"
dnf "$@" update
fi
if hash flatpak 2>/dev/null; then
# Flatpak apps are sandboxed and should be safe to update automatically
flatpak update --assumeyes