From e60dc64828617a6d358687480ce4181fbb1fc12d Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 7 Aug 2015 13:56:12 +0800 Subject: only run post_install if it's defined Closes Homebrew/homebrew#42593. Signed-off-by: Xu Cheng --- Library/Homebrew/cmd/postinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb index 6630afba1..f20b7ad54 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.each { |f| run_post_install(f) } + ARGV.resolved_formulae.select(&:post_install_defined?).each { |f| run_post_install(f) } end def run_post_install(formula) -- cgit v1.2.3