'file' output might span two lines with universal binaries.

Filter out any lines that start with "- Mach-O".
This commit is contained in:
Dave Page 2022-08-10 10:20:01 +01:00
parent f5793e9a7a
commit 923f2fc7c4

View File

@ -316,6 +316,7 @@ _codesign_binaries() {
IFS=$'\n'
for i in $(find "${BUNDLE_DIR}" -type f -perm +111 -exec file "{}" \; | \
grep -v "(for architecture" | \
grep -v -E "^- Mach-O" | \
grep -E "Mach-O executable|Mach-O 64-bit executable|Mach-O 64-bit bundle|Mach-O 64-bit dynamically linked shared library" | \
awk -F":" '{print $1}' | \
uniq)