diff options
| author | Mike McQuaid | 2017-05-03 09:01:19 +0100 |
|---|---|---|
| committer | GitHub | 2017-05-03 09:01:19 +0100 |
| commit | 6b005abd6a7839ffc3e4724ac98e03d3e6086db5 (patch) | |
| tree | 16df01318d0bb47679168a53e9aa8f697effba28 /Library/Homebrew/utils.rb | |
| parent | 77b9ef84ee0025c85faa78c252291ebddc896313 (diff) | |
| parent | 5b19563937bab44fb98648a8dabdb9dc930a0ac3 (diff) | |
| download | brew-6b005abd6a7839ffc3e4724ac98e03d3e6086db5.tar.bz2 | |
Merge pull request #2578 from MikeMcQuaid/utils-gem-dir-create
utils: create GEM_HOME when installing Gems.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 83b8ba342..59415906d 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -189,6 +189,9 @@ module Homebrew Gem.clear_paths Gem::Specification.reset + # Create GEM_HOME which may not exist yet so it exists when creating PATH. + FileUtils.mkdir_p Gem.bindir + # Add Gem binary directory and (if missing) Ruby binary directory to PATH. path = PATH.new(ENV["PATH"]) path.prepend(RUBY_BIN) if which("ruby") != RUBY_PATH |
