From 231ccb82801553994374b5d2fe54be65d5d0ea97 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 1 Feb 2021 10:26:53 +0200 Subject: [PATCH] deb-update.bash: add dnf check-update --- bash/deb-update.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index 2ac854e..52abdbf 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -20,6 +20,11 @@ if hash apt-get 2>/dev/null; then fi if hash dnf 2>/dev/null; then + # I don't know if -y does anything here either and I think this may be + # useless, but I am used to it coming from apt and I think it will just + # say nothing to do or do nothing if mirrors haven't updated. + dnf check-update -y + # If arguments like -y are passed to the script, they become "$@" dnf "$@" upgrade fi