From 35af31dc14d99a725bf8ae60d92558e1d0c4921d Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Wed, 18 Sep 2024 14:50:22 -0700 Subject: [PATCH] tools: In ensure_coreutils, add another place to look for Homebrew It might be found at this path on Macs with Apple Silicon. Discussion: https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/Xcode.20on.20new.20laptop/near/1937894 --- tools/lib/ensure-coreutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/ensure-coreutils.sh b/tools/lib/ensure-coreutils.sh index 1398fdcf082..1971660f0da 100644 --- a/tools/lib/ensure-coreutils.sh +++ b/tools/lib/ensure-coreutils.sh @@ -72,7 +72,7 @@ ensure_coreutils() { # Else try finding a Homebrew install of coreutils, # and putting that on the PATH. - homebrew_prefix=$(brew --prefix || :) + homebrew_prefix=$(brew --prefix || /opt/homebrew/bin/brew --prefix || :) if [ -n "${homebrew_prefix}" ]; then # Found Homebrew. Either use that, or if we can't then # print an error with Homebrew-specific instructions.