Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make sure provided gems are also in @global, update #1430

  • Loading branch information...
commit 956f30e84cac00af6684481394b3d5386dded8f0 1 parent 3e7e3ca
@mpapis mpapis authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 scripts/functions/utility
View
7 scripts/functions/utility
@@ -660,11 +660,16 @@ __rvm_rubygems_create_link()
rubygems_detect_ruby_lib_gem_path "${1:-ruby}"
# Add ruby's gem path to ruby's lib direcotry.
- \mkdir -p "$(dirname $ruby_lib_gem_path)" "$rvm_ruby_gem_home"
+ \mkdir -p "$(dirname $ruby_lib_gem_path)" "$rvm_ruby_gem_home" "$rvm_ruby_global_gems_path"
if
[[ -d "$ruby_lib_gem_path" && ! -L "$ruby_lib_gem_path" ]]
then
+ if
+ [[ "$rvm_ruby_gem_home" != "$rvm_ruby_global_gems_path" ]]
+ then
+ \cp -f "$ruby_lib_gem_path"/* "$rvm_ruby_global_gems_path"/ 2>/dev/null
+ fi
\mv -f "$ruby_lib_gem_path"/* "$rvm_ruby_gem_home"/ 2>/dev/null
fi
__rvm_rm_rf "$ruby_lib_gem_path"
Please sign in to comment.
Something went wrong with that request. Please try again.