nerves-project / nerves_system_br

Platform infrastructure for embedded Erlang/OTP, Elixir, and LFE projects
http://nerves-project.org
GNU General Public License v2.0
408 stars 86 forks source link

Switch to bash loop for scrubbing away executables #777

Closed jjcarstens closed 7 months ago

jjcarstens commented 7 months ago

Based on #771 - Thanks to @CaptChrisD for getting it started!

find in that last few MacOS versions have been slightly different from one another which causes confusing errors when trying to use the -not -path arguments to filter out files from stripping.

This changes to use simple bash loop to filter those out since the .noscrub directories are usually few and this reduces changes of future OS version randomly breaking (and us having to learn all the nuances of find between systems)