aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-12-18 11:16:02 -0800
committerGitHub2016-12-18 11:16:02 -0800
commit5aeb7125c42f04e76d6bcb959bf915e3456b09b1 (patch)
treea5f45814c33d9cf8c9f5caf82470fdf98ef830f5 /Library
parentb0d2dc7278474bc6eb681005daa1c2fee3a96a8f (diff)
parent384174e5425343dff2d1e63587f0afd1fe433a82 (diff)
downloadbrew-5aeb7125c42f04e76d6bcb959bf915e3456b09b1.tar.bz2
Merge pull request #1685 from MikeMcQuaid/utils-path-string
which_all: don't assume path is a string.
Diffstat (limited to 'Library')
-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