From 1ea361bc79362724575f7a3225a77a2a5042b039 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Mon, 21 Dec 2020 10:25:45 -0500 Subject: [PATCH] =?UTF-8?q?Always=20pass=20=E2=80=98-y=E2=80=99=20to=20dnf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DNF should never be used unattended without ‘-y’. --- package-managers/upgrades-installed-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-managers/upgrades-installed-check b/package-managers/upgrades-installed-check index 2222633..eec7299 100755 --- a/package-managers/upgrades-installed-check +++ b/package-managers/upgrades-installed-check @@ -15,7 +15,7 @@ if [ -e /etc/system-release ]; then yum=yum fi # shellcheck disable=SC2034 - yum_output="$($yum -q check-update 2>&1)" + yum_output="$($yum -yq check-update 2>&1)" exit_code="$?" [ "$exit_code" -eq 100 ] && echo "false" && exit 0 [ "$exit_code" -eq 0 ] && echo "true"