Always pass ‘-y’ to dnf
DNF should never be used unattended without ‘-y’.
This commit is contained in:
parent
95022f94e9
commit
1ea361bc79
@ -15,7 +15,7 @@ if [ -e /etc/system-release ]; then
|
|||||||
yum=yum
|
yum=yum
|
||||||
fi
|
fi
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
yum_output="$($yum -q check-update 2>&1)"
|
yum_output="$($yum -yq check-update 2>&1)"
|
||||||
exit_code="$?"
|
exit_code="$?"
|
||||||
[ "$exit_code" -eq 100 ] && echo "false" && exit 0
|
[ "$exit_code" -eq 100 ] && echo "false" && exit 0
|
||||||
[ "$exit_code" -eq 0 ] && echo "true"
|
[ "$exit_code" -eq 0 ] && echo "true"
|
||||||
|
Loading…
Reference in New Issue
Block a user