Support yum (for CentOS in particular)

This should solve issue #7.
This commit is contained in:
TheElectronWill 2018-02-01 23:26:03 +01:00
parent d5591e3be7
commit 93ba3d8796

View file

@ -5,9 +5,13 @@
# Initializes $installer and $distrib # Initializes $installer and $distrib
if hash dnf 2>/dev/null; then if hash dnf 2>/dev/null; then
# Fedora, CentOS # Fedora, CentOS with dnf installed
installer="dnf install --allowerasing" installer="dnf install --allowerasing"
distrib="redhat" distrib="redhat"
elif hash yum 2>/dev/null; then
# CentOS
installer="yum install"
distrib="redhat"
elif hash zypper 2>/dev/null; then elif hash zypper 2>/dev/null; then
# OpenSUSE # OpenSUSE
installer="zypper install" installer="zypper install"