diff options
| author | Mike McQuaid | 2016-12-10 13:19:01 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-12-10 13:19:01 +0000 |
| commit | 384174e5425343dff2d1e63587f0afd1fe433a82 (patch) | |
| tree | 2c925e5e49994b83116e8ddd104dcd40c6866e30 /Library | |
| parent | f02491180b199c370d1f930eb6fa50326e14348a (diff) | |
| download | brew-384174e5425343dff2d1e63587f0afd1fe433a82.tar.bz2 | |
which_all: don't assume path is a string.
Fixes #1635.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
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 |
