diff options
| author | Mike McQuaid | 2017-05-03 09:00:17 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-05-03 09:00:17 +0100 |
| commit | f951a22beacdae7dd95c94eba67236fe221a3ca0 (patch) | |
| tree | fe131c76a1baa698ca20240311460b29c1de3295 /Library/Homebrew/cmd | |
| parent | 77b9ef84ee0025c85faa78c252291ebddc896313 (diff) | |
| download | brew-f951a22beacdae7dd95c94eba67236fe221a3ca0.tar.bz2 | |
Install etc/var files on postinstall.
Also, don't delete them after that. This means that `brew postinstall`
becomes a way to easily reinstall configuration files for any formula
without needing any changes to any bottles or requiring a reinstall.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/postinstall.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb index 8808a2602..f5d091227 100644 --- a/Library/Homebrew/cmd/postinstall.rb +++ b/Library/Homebrew/cmd/postinstall.rb @@ -7,7 +7,10 @@ module Homebrew module_function def postinstall - ARGV.resolved_formulae.each { |f| run_post_install(f) if f.post_install_defined? } + ARGV.resolved_formulae.each do |f| + ohai "Postinstalling #{f}" + run_post_install(f) + end end def run_post_install(formula) |
