Merge "CentOS Stream 8: Use /usr/bin/which instead of bash function"
This commit is contained in:
commit
bb7f9401f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user