Skip to content

Commit ef5f58a

Browse files
committed
Use Gem.bindir instead of #{Gem.dir}/bin.
1 parent 370c711 commit ef5f58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def install_gem_setup_path!(name, version = nil, executable = name)
196196
# Add Gem binary directory and (if missing) Ruby binary directory to PATH.
197197
path = ENV["PATH"].split(File::PATH_SEPARATOR)
198198
path.unshift(RUBY_BIN) if which("ruby") != RUBY_PATH
199-
path.unshift("#{Gem.dir}/bin")
199+
path.unshift(Gem.bindir)
200200
ENV["PATH"] = path.join(File::PATH_SEPARATOR)
201201

202202
if Gem::Specification.find_all_by_name(name, version).empty?

0 commit comments

Comments
 (0)