Only try and install using git pull when formula.

This commit is contained in:
Mike McQuaid 2010-11-21 10:32:33 +00:00
parent 2be392bc8c
commit 331a725516

View File

@ -38,7 +38,7 @@ HOMEBREW_REPOSITORY.cd do
if install if install
status, filename = `git diff HEAD~1 --name-status`.split() status, filename = `git diff HEAD~1 --name-status`.split()
# Don't try and do anything to removed files. # Don't try and do anything to removed files.
if status == 'A' or status == 'M' if (status == 'A' or status == 'M') and filename.include? '/Formula/'
formula = File.basename(filename, '.rb') formula = File.basename(filename, '.rb')
ohai "Installing #{formula}" ohai "Installing #{formula}"
# Not sure if this is the best way to install? # Not sure if this is the best way to install?