Merge "CentOS Stream 8: Use /usr/bin/which instead of bash function"

This commit is contained in:
Zuul 2021-04-07 23:23:18 +00:00 committed by Gerrit Code Review
commit bb7f9401f6

View File

@ -122,7 +122,7 @@ function config_init {
function is_dnf {
if [[ -e /etc/centos-release ]]; then
which dnf >/dev/null 2>&1
/usr/bin/which dnf >/dev/null 2>&1
else
return 1
fi
@ -130,7 +130,7 @@ function is_dnf {
function is_yum {
if [[ -e /etc/centos-release ]]; then
which yum >/dev/null 2>&1
/usr/bin/which yum >/dev/null 2>&1
else
return 1
fi