mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-26 04:59:38 +01:00
deb-update.bash: add dnf
This commit is contained in:
parent
93c0a8d536
commit
86d0088a4f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user