From 8fb9cdaceb7b30ff8a1a4a2d60ea8aae46532c44 Mon Sep 17 00:00:00 2001 From: xorinox <61642896+xorinox@users.noreply.github.com> Date: Thu, 25 Mar 2021 21:27:26 -0400 Subject: [PATCH] Update install.sh (#1310) Add testing for 'yum' && fedora-release. In a later step one could be testing 'dnf' and fedora separately. --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 0f78e81b7115..6863f160995b 100644 --- a/install.sh +++ b/install.sh @@ -46,13 +46,13 @@ if [ "$(uname)" = "Linux" ]; then # Arch Linux echo "Installing on Arch Linux" sudo pacman -S --needed python git - elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ]; then + elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f "/etc/fedora-release" ]; then # AMZN 2 echo "Installing on Amazon Linux 2" sudo yum install -y python3 git - elif type yum && [ -f /etc/redhat-release ] || [ -f /etc/centos-release ]; then - # CentOS or Redhat - echo "Installing on CentOS/Redhat" + elif type yum && [ -f "/etc/redhat-release" ] || [ -f "/etc/centos-release" ] || [ -f "/etc/fedora-release" ]; then + # CentOS or Redhat or Fedora + echo "Installing on CentOS/Redhat/Fedora" fi elif [ "$(uname)" = "Darwin" ] && ! type brew >/dev/null 2>&1; then echo "Installation currently requires brew on MacOS - https://brew.sh/"