Skip to content

Commit b5bf538

Browse files
otahirsfvacek
authored andcommitted
fix: deduplicates entries
1 parent a61efcd commit b5bf538

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/macos-bundle-fix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fix_binary() {
2121
local binname; binname=$(basename "$binary")
2222

2323
# otool -L is the macOS equivalent of ldd; tail -n +2 skips the header line.
24-
otool -L "$binary" 2>/dev/null | tail -n +2 | awk '{print $1}' | while read -r dep; do
24+
otool -L "$binary" 2>/dev/null | tail -n +2 | awk '{print $1}' | sort -u | while read -r dep; do
2525

2626
# Unlike ldd, otool -L lists the library's own install name (SONAME
2727
# equivalent) as the first entry — skip it to avoid self-bundling.

0 commit comments

Comments
 (0)