deb-update.bash: add dnf check-update

This commit is contained in:
Aminda Suomalainen 2021-02-01 10:26:53 +02:00
parent 69d02dda9a
commit 231ccb8280
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -20,6 +20,11 @@ if hash apt-get 2>/dev/null; then
fi fi
if hash dnf 2>/dev/null; then 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 "$@" # If arguments like -y are passed to the script, they become "$@"
dnf "$@" upgrade dnf "$@" upgrade
fi fi