Skip to content

Commit

Permalink
Fix #5512
Browse files Browse the repository at this point in the history
Make the double quotes around the distro name optional so it matches properly in Fedora (`NAME=Fedora`)
  • Loading branch information
corollari authored and chriseth committed Nov 28, 2018
1 parent 7cbf046 commit 87f9834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ detect_linux_distro() {
DISTRO=$(lsb_release -is)
elif [ -f /etc/os-release ]; then
# extract 'foo' from NAME=foo, only on the line with NAME=foo
DISTRO=$(sed -n -e 's/^NAME="\(.*\)\"/\1/p' /etc/os-release)
DISTRO=$(sed -n -e 's/^NAME="\?\([^"]*\)"\?$/\1/p' /etc/os-release)
elif [ -f /etc/centos-release ]; then
DISTRO=CentOS
else
Expand Down

0 comments on commit 87f9834

Please sign in to comment.