aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlbert <me@albert.sh>2018-11-27 11:43:06 +0800
committerchriseth <chris@ethereum.org>2018-11-29 06:18:44 +0800
commit87f98343811a559e424de1f2dc3122ae87298ded (patch)
tree02a8050dc4c7cf56a8ce9ba940e8b18c18ce6608 /scripts
parent7cbf04686442b44b41d7b24800edb8444db31092 (diff)
downloaddexon-solidity-87f98343811a559e424de1f2dc3122ae87298ded.tar
dexon-solidity-87f98343811a559e424de1f2dc3122ae87298ded.tar.gz
dexon-solidity-87f98343811a559e424de1f2dc3122ae87298ded.tar.bz2
dexon-solidity-87f98343811a559e424de1f2dc3122ae87298ded.tar.lz
dexon-solidity-87f98343811a559e424de1f2dc3122ae87298ded.tar.xz
dexon-solidity-87f98343811a559e424de1f2dc3122ae87298ded.tar.zst
dexon-solidity-87f98343811a559e424de1f2dc3122ae87298ded.zip
Fix #5512
Make the double quotes around the distro name optional so it matches properly in Fedora (`NAME=Fedora`)
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