diff options
| author | Markus Reiter | 2017-03-05 16:43:27 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-05 16:43:27 +0100 |
| commit | bc8091b67a76d5113771dc265e6e5eccff712421 (patch) | |
| tree | 89d323f72fce257bad246973b3bec2b3ffac7098 /Library/Homebrew/utils.rb | |
| parent | 45f52f77e577522a985a88dde84d198513e419c5 (diff) | |
| parent | ef5f58a14bdf4eb4ef8a238a879074c906ac03c2 (diff) | |
| download | brew-bc8091b67a76d5113771dc265e6e5eccff712421.tar.bz2 | |
Merge pull request #2253 from reitermarkus/gem-bindir
Use `Gem.bindir` instead of `#{Gem.dir}/bin`.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -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 0e3c0f568..8f897de17 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -196,7 +196,7 @@ module Homebrew # Add Gem binary directory and (if missing) Ruby binary directory to PATH. path = ENV["PATH"].split(File::PATH_SEPARATOR) path.unshift(RUBY_BIN) if which("ruby") != RUBY_PATH - path.unshift("#{Gem.dir}/bin") + path.unshift(Gem.bindir) ENV["PATH"] = path.join(File::PATH_SEPARATOR) if Gem::Specification.find_all_by_name(name, version).empty? |
