From 993e307bd3a86ad46acad82160ac1b56262785d0 Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 22 Jan 2024 12:09:22 +0100 Subject: [PATCH] adapted setup for arm64 Darwin version of cdbm --- setup.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 8aea9ac..5ae930c 100755 --- a/setup.sh +++ b/setup.sh @@ -1,4 +1,6 @@ #!/bin/sh +# +#set -x dotPath=".config/dotfiles" @@ -17,7 +19,15 @@ else OS=`uname` case "$OS" in Darwin) - cp $dotPath/cdbm/Darwin/cdbm /usr/local/bin + ARCH=`uname -m` + case "$ARCH" in + arm64) + cp $dotPath/cdbm/Darwin/arm64/cdbm /usr/local/bin + ;; + *) + cp $dotPath/cdbm/Darwin/x86_64/cdbm /usr/local/bin + ;; + esac ;; Linux) cp $dotPath//cdbm/Linux/cdbm /usr/local/bin