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

View File

@ -19,6 +19,11 @@ if hash apt-get 2>/dev/null; then
apt-get "$@" autoremove apt-get "$@" autoremove
fi 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 if hash flatpak 2>/dev/null; then
# Flatpak apps are sandboxed and should be safe to update automatically # Flatpak apps are sandboxed and should be safe to update automatically
flatpak update --assumeyes flatpak update --assumeyes