diff options
| author | Adam Vandenberg | 2014-03-16 16:05:05 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-03-16 16:05:15 -0700 | 
| commit | 6a13c9e434475161984f6e0a7b149a586697f710 (patch) | |
| tree | 4620f540a60941e9e706d466f0e191053947d0e5 /Library/Homebrew/utils.rb | |
| parent | 844e94526e0ffbeb67af8c089b3c06ca6cc53231 (diff) | |
| download | brew-6a13c9e434475161984f6e0a7b149a586697f710.tar.bz2 | |
which is supposed to return a pathname
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 9c78b91a0..1322abc8d 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -172,7 +172,7 @@ end  def which cmd, path=ENV['PATH']    path.split(File::PATH_SEPARATOR).find do |p|      pcmd = File.join(p, cmd) -    return pcmd if File.executable?(pcmd) && !File.directory?(pcmd) +    return Pathname.new(pcmd) if File.executable?(pcmd) && !File.directory?(pcmd)    end    return nil  end  | 
