aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-12-10 13:19:01 +0000
committerMike McQuaid2016-12-10 13:19:01 +0000
commit384174e5425343dff2d1e63587f0afd1fe433a82 (patch)
tree2c925e5e49994b83116e8ddd104dcd40c6866e30
parentf02491180b199c370d1f930eb6fa50326e14348a (diff)
downloadbrew-384174e5425343dff2d1e63587f0afd1fe433a82.tar.bz2
which_all: don't assume path is a string.
Fixes #1635.
-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 89a90bed2..4ad97c7d4 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -300,7 +300,7 @@ def which(cmd, path = ENV["PATH"])
end
def which_all(cmd, path = ENV["PATH"])
- path.split(File::PATH_SEPARATOR).map do |p|
+ path.to_s.split(File::PATH_SEPARATOR).map do |p|
begin
pcmd = File.expand_path(cmd, p)
rescue ArgumentError