From e6adb4b6ffead0c9293242917b1b7f2c48003529 Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Fri, 28 Jun 2024 02:05:50 +0200 Subject: [PATCH] Actually invoke uname when getting path --- modules/03-install-brew.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/03-install-brew.sh b/modules/03-install-brew.sh index 060e222..f6b111e 100755 --- a/modules/03-install-brew.sh +++ b/modules/03-install-brew.sh @@ -90,7 +90,8 @@ function ensureLocalBinFolder() { } function getHomebrewRepositoryPath() { - if [[ "${uname_machine}" == "arm64" ]]; then + local uname_machine=$(/usr/bin/uname -m) + if [[ ${uname_machine} == "arm64" ]]; then print -- "/opt/homebrew" else print "/usr/local/Homebrew"