Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stricter checking.

  • Loading branch information...
commit 7bef25d7d6cdfa3a65236ae19a17e89e08653c21 1 parent 84298f6
@wayneeseguin wayneeseguin authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 scripts/utility
View
6 scripts/utility
@@ -764,11 +764,9 @@ __rvm_gems_select() {
rvm_ruby_gem_path="$rvm_ruby_gem_home:$rvm_ruby_global_gems_path"
# TODO: Remove next section after a several releases.
- if [[ ! -d "$HOME/.gem/cache" ]] ; then
- mkdir -p $HOME/.gem/cache
- fi
+ if [[ ! -d "$HOME/.gem/cache" ]] ; then mkdir -p $HOME/.gem/cache ; fi
# Migrate original rvm global gem cache directory to $HOME/.gem/cache
- if [[ -d "$rvm_path/gems/cache" ]] ; then
+ if [[ -d "$rvm_path/gems/cache" ]] && [[ ! -L "$rvm_path/gems/cache" ]] ; then
mv "$rvm_path"/gems/cache/* $HOME/.gem/cache/
rm -rf "$rvm_path"/gems/cache
fi
Please sign in to comment.
Something went wrong with that request. Please try again.