Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Silicon Homebrew Packages location #768

Open
unixb0y opened this issue Jun 10, 2023 · 0 comments
Open

Apple Silicon Homebrew Packages location #768

unixb0y opened this issue Jun 10, 2023 · 0 comments

Comments

@unixb0y
Copy link

unixb0y commented Jun 10, 2023

I'm submitting a ... (check one with "x")

[X] bug report
[ ] new distro request

Bug report

screenfetch
ls: /usr/local/Cellar/: No such file or directory
[...] (rest looks ok)

Basically, this line has to be changed. The current version probably just works for Intel Macs, so there needs to be a switch that uses a different location based on architecture.

According to Stack Overflow:

brew_pkgs=$(ls -1 /usr/local/Cellar/ | wc -l) # for Intel

brew_pkgs=$(ls -1 /opt/homebrew/Cellar/ | wc -l) # for Apple Silicon

Alternatively, something like this may work (only tested on Apple Silicon):

brew_pkgs=$(ls -1 $(brew --prefix)/Cellar | wc -l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant