aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install_deps.sh
diff options
context:
space:
mode:
authorrain <rainbeam@riseup.net>2016-08-17 02:11:58 +0800
committerrain <rainbeam@riseup.net>2016-08-17 02:11:58 +0800
commitf1ee87664482ec816d544d226c1f96072ccc8fb2 (patch)
treef27025f9bf74aa8dc1d6a4d40a80a0fee335e7ea /scripts/install_deps.sh
parentec3298535ebe1d6602df9196b81c92d4a88b4821 (diff)
downloaddexon-solidity-f1ee87664482ec816d544d226c1f96072ccc8fb2.tar.gz
dexon-solidity-f1ee87664482ec816d544d226c1f96072ccc8fb2.tar.zst
dexon-solidity-f1ee87664482ec816d544d226c1f96072ccc8fb2.zip
separate function for determining linux distro
Diffstat (limited to 'scripts/install_deps.sh')
-rwxr-xr-xscripts/install_deps.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh
index bbf28d95..3884cb12 100755
--- a/scripts/install_deps.sh
+++ b/scripts/install_deps.sh
@@ -55,6 +55,11 @@
# Check for 'uname' and abort if it is not available.
uname -v > /dev/null 2>&1 || { echo >&2 "ERROR - solidity requires 'uname' to identify the platform."; exit 1; }
+detect_linux_distro() {
+ DISTRO=$(lsb_release -is)
+ echo $DISTRO
+}
+
case $(uname -s) in
#------------------------------------------------------------------------------
@@ -124,7 +129,7 @@ case $(uname -s) in
#------------------------------------------------------------------------------
Linux)
- case $(lsb_release -is) in
+ case $(detect_linux_distro) in
#------------------------------------------------------------------------------
# Arch Linux