Do not install dnf on CentOS 7

This commit is contained in:
Taiki Endo
2022-12-14 23:46:06 +09:00
parent 1ab447b34f
commit 807aa14713

View File

@@ -245,13 +245,7 @@ case "${OSTYPE}" in
# If neither dnf nor microdnf is available, it is
# probably an RHEL7-based distribution that does not
# have dnf installed by default.
if type -P sudo &>/dev/null; then
sudo yum update -y
sudo yum install -y dnf
else
yum update -y
yum install -y dnf
fi
dnf=yum
fi
fi
;;