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:
Riccardo Pittau 2021-04-08 17:46:26 +02:00
parent 7271695714
commit 95c429b5ba
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ case ${ID,,} in
rhel|fedora|centos)
OS_FAMILY="RedHat"
PKG_MANAGER=$(which dnf || which yum)
PKG_MANAGER=$(/usr/bin/which dnf || /usr/bin/which yum)
if [[ "${BIFROST_TRACE:-}" != true ]]; then
PKG_MANAGER="$PKG_MANAGER --quiet"
fi