From 923f2fc7c474957834477668e7eabd17847d683a Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 10 Aug 2022 10:20:01 +0100 Subject: [PATCH] 'file' output might span two lines with universal binaries. Filter out any lines that start with "- Mach-O". --- pkg/mac/build-functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/mac/build-functions.sh b/pkg/mac/build-functions.sh index 172a7c41d..9fbe729b1 100644 --- a/pkg/mac/build-functions.sh +++ b/pkg/mac/build-functions.sh @@ -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)