From 59b810ae7bd37725c8b6f1b9bb662c816882d365 Mon Sep 17 00:00:00 2001 From: Tom Hoover Date: Thu, 8 Jan 2026 10:02:00 -0600 Subject: [PATCH] Add Apple Silicon compatibility to simplesnapwrap Homebrew uses /usr/local/bin for program installation on Intel Macs; however, it began using /opt/homebrew/bin for Macs with Apple Silicon. This PR ensures compatibility with both Apple Silicon and Intel, as "${HOMEBREW_PREFIX}" points to /opt/homebrew or /usr/local, as appropriate. --- simplesnapwrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simplesnapwrap b/simplesnapwrap index ea5e98f..ddabd8d 100755 --- a/simplesnapwrap +++ b/simplesnapwrap @@ -42,8 +42,8 @@ runzfs () { fi } -if [ "$(uname)" = "Darwin" ] ; then - PATH=$PATH:/usr/local/bin +if [ "$(uname)" = "Darwin" ] && [ "${HOMEBREW_PREFIX}" ] ; then + PATH=$PATH:${HOMEBREW_PREFIX}/bin ZFSCMD="zfs" fi