aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-29 21:04:54 +0800
committerGitHub <noreply@github.com>2018-11-29 21:04:54 +0800
commit6b11ef188739302bc9a2a553aee25a172325e0be (patch)
treee608841ff429871a101ecc657a79f1104dc0da53 /scripts
parentf6d013237d8b20c73e198b21d652872b236e34d0 (diff)
parent87f98343811a559e424de1f2dc3122ae87298ded (diff)
downloaddexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.tar
dexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.tar.gz
dexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.tar.bz2
dexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.tar.lz
dexon-solidity-6b11ef188739302bc9a2a553aee25a172325e0be.tar.xz
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-xscripts/install_deps.sh2
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