diff options
| author | Jack Nagel | 2013-12-05 15:08:37 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-05 15:09:18 -0600 |
| commit | 34bae6d5fe21b690cf6a9725c58a172fbc032b74 (patch) | |
| tree | e2ec528c6338fc8e66b79084a6113492a9a9c8dd /Library | |
| parent | 6bacb810bb58b9426b7e68a1333bc77edb24a333 (diff) | |
| download | homebrew-34bae6d5fe21b690cf6a9725c58a172fbc032b74.tar.bz2 | |
String isn't Enumerable in 1.9+
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 03e77d793..14f0da079 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -49,8 +49,8 @@ module Homebrew extend self end # Find all files that still reference the keg via a string search - keg_ref_files = `/usr/bin/fgrep --files-with-matches --recursive "#{string}" "#{keg}" 2>/dev/null` - keg_ref_files = (keg_ref_files.map{ |file| Pathname.new(file.strip) }).reject(&:symlink?) + keg_ref_files = `/usr/bin/fgrep --files-with-matches --recursive "#{string}" "#{keg}" 2>/dev/null`.split + keg_ref_files.map! { |file| Pathname.new(file) }.reject!(&:symlink?) # If there are no files with that string found, return immediately return false if keg_ref_files.empty? |
