mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 06:10:28 +00:00
Do not install dnf on CentOS 7
This commit is contained in:
8
main.sh
8
main.sh
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user