aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/postinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/postinstall.rb')
-rw-r--r--Library/Homebrew/cmd/postinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb
index f20b7ad54..1fdf7f67e 100644
--- a/Library/Homebrew/cmd/postinstall.rb
+++ b/Library/Homebrew/cmd/postinstall.rb
@@ -2,7 +2,7 @@ require "sandbox"
module Homebrew
def postinstall
- ARGV.resolved_formulae.select(&:post_install_defined?).each { |f| run_post_install(f) }
+ ARGV.resolved_formulae.each { |f| run_post_install(f) if f.post_install_defined? }
end
def run_post_install(formula)