Skip to content

Commit

Permalink
Update install.sh (Chia-Network#1310)
Browse files Browse the repository at this point in the history
Add testing for 'yum' && fedora-release. In a later step one could be testing 'dnf' and fedora separately.
  • Loading branch information
xorinox authored Mar 26, 2021
1 parent 22caa07 commit 8fb9cda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit 8fb9cda

Please sign in to comment.