From 6a13c9e434475161984f6e0a7b149a586697f710 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 16 Mar 2014 16:05:05 -0700 Subject: [PATCH] which is supposed to return a pathname --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 9c78b91a05..1322abc8d5 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