From dac5fbe6f22ff0689b11476faa67c74bcc02ceba Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sat, 7 Dec 2019 08:52:32 -0500 Subject: [PATCH] Using uname for CPU arch --- create-venv.sh | 2 +- download-dependencies.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/create-venv.sh b/create-venv.sh index bbaee0e..6e8e8e9 100755 --- a/create-venv.sh +++ b/create-venv.sh @@ -130,7 +130,7 @@ fi # ----------------------------------------------------------------------------- # CPU architecture -CPU_ARCH="$(python3 -c 'import platform; print(platform.machine())')" +CPU_ARCH="$(uname --m)" case "${CPU_ARCH}" in x86_64) FRIENDLY_ARCH=amd64 diff --git a/download-dependencies.sh b/download-dependencies.sh index f3b5e6b..0bb2baf 100755 --- a/download-dependencies.sh +++ b/download-dependencies.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash this_dir="$( cd "$( dirname "$0" )" && pwd )" -cpu_arch="$(python3 -c 'import platform; print(platform.machine())')" +cpu_arch=$(uname --m) # ----------------------------------------------------------------------------- # Command-line Arguments