diff options
| author | Markus Reiter | 2017-03-04 19:30:34 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-03-04 19:30:34 +0100 |
| commit | ef5f58a14bdf4eb4ef8a238a879074c906ac03c2 (patch) | |
| tree | 4b7c3e83fbcd72c908631a584aeac879a77724e2 | |
| parent | 370c711da23fa0f7c7944f7d15928e44a67656a9 (diff) | |
| download | brew-ef5f58a14bdf4eb4ef8a238a879074c906ac03c2.tar.bz2 | |
Use `Gem.bindir` instead of `#{Gem.dir}/bin`.
| -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? |
