mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 14:20:29 +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
|
# If neither dnf nor microdnf is available, it is
|
||||||
# probably an RHEL7-based distribution that does not
|
# probably an RHEL7-based distribution that does not
|
||||||
# have dnf installed by default.
|
# have dnf installed by default.
|
||||||
if type -P sudo &>/dev/null; then
|
dnf=yum
|
||||||
sudo yum update -y
|
|
||||||
sudo yum install -y dnf
|
|
||||||
else
|
|
||||||
yum update -y
|
|
||||||
yum install -y dnf
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user