From 20f8f67928a58fc2dc35e2ab725ccd92e8fb3c4e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 31 Aug 2020 11:40:10 +0200 Subject: [PATCH] hack/util: take other arches into account on Darwin Signed-off-by: Sebastiaan van Stijn --- hack/util | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hack/util b/hack/util index 1d99c4b9..17e76d26 100755 --- a/hack/util +++ b/hack/util @@ -22,9 +22,12 @@ else fi if [ -z "$CLI_PLATFORM" ]; then - rawos=$(uname -s) - if [ "$rawos" = "Darwin" ]; then - CLI_PLATFORM="darwin/amd64" + if [ "$(uname -s)" = "Darwin" ]; then + arch="$(uname -m)" + if [ "$arch" = "x86_64" ]; then + arch="amd64" + fi + CLI_PLATFORM="darwin/$arch" elif uname -s | grep MINGW > /dev/null 2>&1 ; then CLI_PLATFORM="windows/amd64" fi