Skip to content

Commit

Permalink
tools: In ensure_coreutils, add another place to look for Homebrew
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chrisbobbe committed Sep 18, 2024
1 parent 2217c85 commit 35af31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/ensure-coreutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 35af31d

Please sign in to comment.