From 4dcee5cd84dd28c9fc10c47560ae97cb91f8f0ac Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Tue, 21 Feb 2017 09:14:49 -0800 Subject: [PATCH] `arch` is not portable. Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index a8bb014b..3f8122cd 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1199,11 +1199,11 @@ FTLdetect() { local machine local binary - machine=$(arch) + machine=$(uname -m) if [[ $machine == arm* || $machine == *aarch* ]]; then # ARM - local rev=$(arch | sed "s/[^0-9]//g;") + local rev=$(uname -m | sed "s/[^0-9]//g;") local lib=$(ldd /bin/ls | grep -E '^\s*/lib' | awk '{ print $1 }') if [[ "$lib" == "/lib/ld-linux-aarch64.so.1" ]]; then echo "::: Detected ARM-aarch64 architecture"