Permalink
Browse files

For root installs, use the rvm_path for global gem cache.

  • Loading branch information...
1 parent a0b90f1 commit b206cc77f2c17b6a72762d7fcf221ec2f3de75ed @wayneeseguin wayneeseguin committed Feb 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/initialize
View
@@ -18,7 +18,7 @@ rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
if [[ "root" = "$(whoami)" ]] ; then
rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}"
- rvm_gems_cache_path="${rvm_gems_cache_path:-"$rvm_path/../lib/ruby/gems/cache"}"
+ rvm_gems_cache_path="${rvm_gems_cache_path:-"$rvm_gems_path/cache"}"
else
rvm_gems_path="${rvm_gems_path:-"$HOME/.rvm/gems"}"
rvm_gems_cache_path="${rvm_gems_cache_path:-"$HOME/.gem/cache"}"

0 comments on commit b206cc7

Please sign in to comment.