Skip to content

Commit 1027d68

Browse files
author
Philip Schmidt
committed
update DISTRO variable to include all variations of Red Hat
1 parent 87b825b commit 1027d68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

linux-installer/idt-installer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function install_deps {
168168
"Linux")
169169
if [[ "${DISTRO}" == *Ubuntu* || "${DISTRO}" == *Debian* ]]; then
170170
install_deps_with_apt_get
171-
elif [[ "${DISTRO}" == *Red*Hat* || "${DISTRO}" == *CentOS* ]]; then
171+
elif [[ "${DISTRO}" == *Red*Hat* || "${DISTRO}" == *CentOS* || "${DISTRO}" == *RHEL* ]]; then
172172
install_deps_with_yum
173173
else
174174
error "This script has not been updated for use with your linux distribution (${DISTRO})"
@@ -484,7 +484,7 @@ function main {
484484
"Linux")
485485
# Linux distro, e.g "Ubuntu", "RedHatEnterpriseWorkstation", "RedHatEnterpriseServer", "CentOS", "Debian"
486486
DISTRO=$(lsb_release -ds 2>/dev/null || cat /etc/*release 2>/dev/null | head -n1 || uname -om || echo "")
487-
if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *RedHat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* ]]; then
487+
if [[ "$DISTRO" != *Ubuntu* && "$DISTRO" != *Red*Hat* && "$DISTRO" != *CentOS* && "$DISTRO" != *Debian* && "$DISTRO" != *RHEL*]]; then
488488
warn "Linux has only been tested on Ubuntu, RedHat, Centos & Debian distrubutions please let us know if you use this utility on other Distros"
489489
fi
490490
;;

0 commit comments

Comments
 (0)