Use explicit path for which
Use the /usr/bin/which path for which in rpm-based distros to avoid issues with any aliases. Change-Id: I3a4f2d667548f25513829579b22712a44e7c6b0f
This commit is contained in:
parent
7271695714
commit
95c429b5ba
@ -73,7 +73,7 @@ case ${ID,,} in
|
|||||||
|
|
||||||
rhel|fedora|centos)
|
rhel|fedora|centos)
|
||||||
OS_FAMILY="RedHat"
|
OS_FAMILY="RedHat"
|
||||||
PKG_MANAGER=$(which dnf || which yum)
|
PKG_MANAGER=$(/usr/bin/which dnf || /usr/bin/which yum)
|
||||||
if [[ "${BIFROST_TRACE:-}" != true ]]; then
|
if [[ "${BIFROST_TRACE:-}" != true ]]; then
|
||||||
PKG_MANAGER="$PKG_MANAGER --quiet"
|
PKG_MANAGER="$PKG_MANAGER --quiet"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user