diff options
| author | Jack Nagel | 2012-05-13 19:00:10 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-05-13 19:28:03 -0500 |
| commit | 210c9ac2055566bb7fd8932299b55c29f1ececee (patch) | |
| tree | 21b01e45c58ee68ee2e39e368c0ccb96ebb5bc18 /Library/Homebrew/utils.rb | |
| parent | 28f89c59a2b39738df5a6fc85711be9af250fb53 (diff) | |
| download | brew-210c9ac2055566bb7fd8932299b55c29f1ececee.tar.bz2 | |
Use 'which' helper method more
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index f5530c29f..de797f2d6 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -482,8 +482,8 @@ module MacOS extend self return false unless MACOS %w[port fink].each do |ponk| - path = `/usr/bin/which #{ponk} 2>/dev/null` - return ponk unless path.empty? + path = which(ponk) + return ponk unless path.nil? end # we do the above check because macports can be relocated and fink may be |
