diff options
| author | Mike McQuaid | 2010-11-21 10:32:33 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2010-11-21 10:32:33 +0000 |
| commit | 331a725516d17cc0a129d81c8eceff3c13ca5686 (patch) | |
| tree | 4fe43f088d1305b8a841a50b1a51659e9699919c /Library/Contributions/examples | |
| parent | 2be392bc8c2f49d11791f63b4cba30c7b7cb0307 (diff) | |
| download | brew-331a725516d17cc0a129d81c8eceff3c13ca5686.tar.bz2 | |
Only try and install using git pull when formula.
Diffstat (limited to 'Library/Contributions/examples')
| -rwxr-xr-x | Library/Contributions/examples/brew-pull.rb | 2 |
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? |
