aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-16 16:05:05 -0700
committerAdam Vandenberg2014-03-16 16:05:15 -0700
commit6a13c9e434475161984f6e0a7b149a586697f710 (patch)
tree4620f540a60941e9e706d466f0e191053947d0e5 /Library/Homebrew/utils.rb
parent844e94526e0ffbeb67af8c089b3c06ca6cc53231 (diff)
downloadbrew-6a13c9e434475161984f6e0a7b149a586697f710.tar.bz2
which is supposed to return a pathname
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb2
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