You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this issue while running Pylon in FreeBSD:
Process terminated with code 1, find: illegal option -- O
I couldn't narrow down the root cause upon a (somewhat) quick check, and fortunately, a workaround exists (install gfind, and then ln -s /usr/local/bin/gfind ~/.local/bin/find).
Still, I figured I might as well bring this up.
The text was updated successfully, but these errors were encountered:
Note that FreeBSD also has the -E option for find, so you can also add that platform to the list.
A more reliable way might be to run find --version --- gfind will yield a result, whereas FreeBSD's will error out. Not sure about Darwin's, but even if it doesn't error out, you should be able to parse the version.
Or --- this is hacky, but should be even more reliable --- you use something akin to find -O3 $APPDIR/test (replace $APPDIR/test with any nearly-empty1 directory, in this case, you'd probably make it in JS anyway) ... any errors here means it's either not GNU Find, or the system is horribly broken anyway.
Footnotes
Nearly-empty for performance reasons; it otherwise technically doesn't matter, as long as find doesn't run into any "permission denied" problems or such. ↩
I ran into this issue while running Pylon in FreeBSD:
I couldn't narrow down the root cause upon a (somewhat) quick check, and fortunately, a workaround exists (install
gfind
, and thenln -s /usr/local/bin/gfind ~/.local/bin/find
).Still, I figured I might as well bring this up.
The text was updated successfully, but these errors were encountered: