We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8824a18 commit d4bd058Copy full SHA for d4bd058
1 file changed
scripts/common/helpers.sh
@@ -120,7 +120,9 @@ do_strip () {
120
local file_pattern="$2"
121
122
if [[ $HOST_OS == "macos" ]]; then
123
- find ${target_dir} -type f -name "${file_pattern}" -executable -exec strip -S {} \;
+ # BSD find doesn't support -executable, use -perm instead
124
+ # -perm +111 matches files with execute permission for user, group, or other
125
+ /usr/bin/find ${target_dir} -type f -name "${file_pattern}" -perm +111 -exec strip -S {} \;
126
else
127
find ${target_dir} -type f -name "${file_pattern}" -executable -exec strip --strip-debug {} \;
128
fi
0 commit comments