Only try and install using git pull when formula.
This commit is contained in:
parent
2be392bc8c
commit
331a725516
@ -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?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user