aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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