Dernière activité 1715191641

Révision c5ca58b7e5f8ea2d8b1501711584e961f8dc0862

gistfile1.txt Brut
1Error 86:
2
3#!/bin/bash
4
5# Loop through all directories in PATH
6for dir in ${PATH//:/ }; do
7 echo "$dir"
8 # Check if directory exists before trying to access
9 if [ -d "$dir" ]; then
10 # Loop through executable files in this directory
11 for file in $dir/*; do
12 # Check if file is executable
13 if [ -x "$file" ]; then
14 # Run desired command on executable file here
15 # For example:
16 if output=$(lipo -archs $file 2> /dev/null ); then
17 echo "$file" "$output" | grep -v "fatal error" | grep -v "arm64"
18 fi
19 fi
20 done
21 fi
22done
23
24% ./find86.sh
25/opt/homebrew/bin
26/opt/homebrew/sbin
27/usr/local/bin
28/usr/local/bin/aws x86_64
29/usr/local/bin/aws_completer x86_64
30/usr/local/bin/wkhtmltoimage x86_64
31/usr/local/bin/wkhtmltopdf x86_64
32/System/Cryptexes/App/usr/bin
33/usr/bin
34/bin
35/usr/sbin
36/sbin
37/usr/local/go/bin
38
39
40///Rosetta fix:
41
42Running softwareupdate --install-rosetta fixes it for me.
43(I ran that as part of installing Docker as per https://docs.docker.com/desktop/mac/apple-silicon/; since that appears to be a compatibility layer for older Mac binaries, I wondered if it might also fix this problem, and it seems to!)
44
45
46https://github.com/mikaelbr/node-notifier/issues/361#issuecomment-968916810