From 86d0088a4f1fcba85ebffbae0cf7c689a870996f Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 24 Jan 2021 11:04:39 +0200 Subject: [PATCH] deb-update.bash: add dnf --- bash/deb-update.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index b5eaa79..a7bb674 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -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