Always pass ‘-y’ to dnf

DNF should never be used unattended without ‘-y’.
This commit is contained in:
Demi Marie Obenour 2020-12-21 10:25:45 -05:00
parent 95022f94e9
commit 1ea361bc79
No known key found for this signature in database
GPG Key ID: 28A45C93B0B5B6E0

View File

@ -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"