From 51bf2c580b9deb0a7d3fd0aa114387a21dd68006 Mon Sep 17 00:00:00 2001 From: Buddy Date: Mon, 13 Jan 2025 10:12:55 -0800 Subject: [PATCH] Add Apple arm support for node install script --- dot_local/share/buddy-up/includes/node.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dot_local/share/buddy-up/includes/node.sh b/dot_local/share/buddy-up/includes/node.sh index dbec8be..7b5475e 100644 --- a/dot_local/share/buddy-up/includes/node.sh +++ b/dot_local/share/buddy-up/includes/node.sh @@ -16,14 +16,15 @@ node_current () ( get_arch () ( case $(uname -m) in - x86_64*) echo x64;; - amd64*) echo x64;; - arm) echo armv7l;; - armv7*) echo armv7l;; - armv6*) echo armv7l;; - armv8*) echo arm64;; - aarch64*) echo arm64;; - *) >&2 echo "unsupported architecture: $(uname -m)"; exit 1;; + x86_64*) echo x64 ;; + amd64*) echo x64 ;; + arm) echo armv7l ;; + arm64) echo arm64 ;; + armv7*) echo armv7l ;; + armv6*) echo armv7l ;; + armv8*) echo arm64 ;; + aarch64*) echo arm64 ;; + *) >&2 echo "unsupported architecture: $(uname -m)"; exit 1 ;; esac )