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

awk: can't open file /proc/cpuinfo #750

Open
flyweb291 opened this issue Aug 1, 2022 · 2 comments
Open

awk: can't open file /proc/cpuinfo #750

flyweb291 opened this issue Aug 1, 2022 · 2 comments
Labels

Comments

@flyweb291
Copy link

I type screenfetch and it prompts for awk: can't open file /proc/cpuinfo and grep: /proc/cpuinfo: No such file or directory
image

I can't find /proc/cpuinfo in the file either
image
image

@bowwowxx
Copy link

I have the same problem, my notebook is mac m1 pro 16,
I found the information of /usr/bin/sw_vers as follows
截圖 2022-09-18 上午3 07 34

So I modified /opt/homebrew/Cellar/screenfetch/3.9.1/bin/screenfetch
The content is
if [[ -x /usr/bin/sw_vers ]] && /usr/bin/sw_vers | grep -i 'macOS' >/dev/null; then

Now it looks normal XD
截圖 2022-09-18 上午2 38 53

@meetrp
Copy link

meetrp commented Nov 3, 2022

To support legacy MacOS version string, My change was:
[Original code] if [[ -x /usr/bin/sw_vers ]] && /usr/bin/sw_vers | grep -i 'Mac OS X' >/dev/null; then
[Changed code] if [[ -x /usr/bin/sw_vers ]] && /usr/bin/sw_vers | grep -i -e 'Mac OS X' -e 'macOS' >/dev/null; then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants