switched back to which for posix sh

pull/2/head
Hari Sekhon 5 years ago
parent 0604d00d50
commit 2e0f78d711

@ -49,7 +49,7 @@ SUDO=""
if [ -n "${NO_FAIL:-}" ]; then
# shellcheck disable=SC2230
if type -P dnf >/dev/null 2>&1; then
if which dnf >/dev/null 2>&1; then
# dnf exists if any of the packages aren't found
for package in $packages; do
rpm -q "$package" || $SUDO yum install -y "$package" || :

Loading…
Cancel
Save