Skip to content

Commit 2bbdd2e

Browse files
committed
Modern homebrew links cellarin /usr/local/opt too
required for git
1 parent a556691 commit 2bbdd2e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

brew-pkg.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def pkg
8585

8686
safe_system "mkdir", "-p", "#{staging_root}/Cellar/#{formula.name}/"
8787
safe_system "rsync", "-a", "#{HOMEBREW_CELLAR}/#{formula.name}/#{dep_version}", "#{staging_root}/Cellar/#{formula.name}/"
88+
safe_system "mkdir", "-p", "#{staging_root}/opt"
89+
safe_system "ln", "-s", "../Cellar/#{formula.name}/#{dep_version}", "#{staging_root}/opt/#{formula.name}"
8890
end
8991

9092
end

0 commit comments

Comments
 (0)