diff options
author | chriseth <chris@ethereum.org> | 2018-11-29 21:04:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-29 21:04:54 +0800 |
commit | 6b11ef188739302bc9a2a553aee25a172325e0be (patch) | |
tree | e608841ff429871a101ecc657a79f1104dc0da53 /scripts | |
parent | f6d013237d8b20c73e198b21d652872b236e34d0 (diff) | |
parent | 87f98343811a559e424de1f2dc3122ae87298ded (diff) | |
download | dexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.tar.gz dexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.tar.zst dexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.zip |
Merge pull request #5513 from corollari/fedora-fix
Detect Fedora properly in install_deps.sh
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install_deps.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index b107f7c9..09d5a249 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -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 |