From 9a35f15e9f1b06068c33f51bd4b7d64e7040ce94 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 7 Sep 2022 20:14:44 +0300 Subject: [PATCH] deb-update.bash: run dnf autoremove twice too --- bash/deb-update.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index fc1689a..2a3e724 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -48,10 +48,13 @@ if hash dnf 2>/dev/null; then # say nothing to do or do nothing if mirrors haven't updated. dnf check-update -y + # potentially unsafe first time, I am not sure if this is concern outside of Debian/Ubuntu though + dnf "$@" autoremove + # If arguments like -y are passed to the script, they become "$@" dnf "$@" upgrade - # potentially unsafe + # potentially unsafe, see a few lines above and the apt-get section dnf "$@" autoremove fi