aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorMike McQuaid2010-11-21 10:32:33 +0000
committerMike McQuaid2010-11-21 10:32:33 +0000
commit331a725516d17cc0a129d81c8eceff3c13ca5686 (patch)
tree4fe43f088d1305b8a841a50b1a51659e9699919c /Library/Contributions
parent2be392bc8c2f49d11791f63b4cba30c7b7cb0307 (diff)
downloadbrew-331a725516d17cc0a129d81c8eceff3c13ca5686.tar.bz2
Only try and install using git pull when formula.
Diffstat (limited to 'Library/Contributions')
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb
index cb5603050..bad9c4ce7 100755
--- a/Library/Contributions/examples/brew-pull.rb
+++ b/Library/Contributions/examples/brew-pull.rb
@@ -38,7 +38,7 @@ HOMEBREW_REPOSITORY.cd do
if install
status, filename = `git diff HEAD~1 --name-status`.split()
# 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')
ohai "Installing #{formula}"
# Not sure if this is the best way to install?