Skip to content

Commit 6d8985d

Browse files
committed
fix(homebrew): only install executable files to bin
1 parent a2244f3 commit 6d8985d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packaging/homebrew/mfc.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ def install
5858
# After build completes, install Python toolchain to prefix
5959
prefix.install "toolchain"
6060

61-
# Install binaries - they're in hashed subdirectories like build/install/<hash>/bin/*
62-
Dir.glob("build/install/*/bin/*").each do |binary_path|
63-
bin.install binary_path
61+
# Install only executable files from hashed build dirs
62+
Dir.glob("build/install/*/bin/*").each do |p|
63+
next unless File.file?(p) && File.executable?(p)
64+
bin.install p
6465
end
6566

6667
# Install main mfc.sh script

0 commit comments

Comments
 (0)