Skip to content

Commit

Permalink
More flexible distro detection (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matzz authored Jul 4, 2022
1 parent 2758617 commit 6cbbf6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ DOWNLOADS="downloads"
mkdir -p $DOWNLOADS

# Identify package installer for distribution
if [ -n "$(grep debian /etc/os-release)" ]; then
if [ -n "$(command -v apt)" ]; then
DIST=debian
PKG_INSTALL="sudo apt-get install -y"
elif [ -n "$(grep fedora /etc/os-release)" ]; then
elif [ -n "$(command -v dnf)" ]; then
DIST=fedora
PKG_INSTALL="sudo dnf install -y"
else
Expand Down

0 comments on commit 6cbbf6d

Please sign in to comment.