diff options
| author | Mike McQuaid | 2010-11-21 10:32:33 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2010-11-21 10:32:33 +0000 |
| commit | 0bb0cf396c3a17997996b80c77e3423d9e3b0d37 (patch) | |
| tree | b8439e48e48531b38de9060e3626201b93db614b /Library | |
| parent | 3d054606514ea12f7bee56e0742edd721b167b98 (diff) | |
| download | homebrew-0bb0cf396c3a17997996b80c77e3423d9e3b0d37.tar.bz2 | |
Only try and install using git pull when formula.
Diffstat (limited to 'Library')
| -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? |
