mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5513 from corollari/fedora-fix
Detect Fedora properly in install_deps.sh
This commit is contained in:
commit
6b11ef1887
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user