Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix: Search global path for 'do' actions.

  • Loading branch information...
commit 42fe1f873037cdaf5ee11a79e750da48116481d6 1 parent f24529f
@wayneeseguin wayneeseguin authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/utility
View
8 scripts/utility
@@ -471,12 +471,12 @@ __rvm_ruby_do() {
__rvm_use
binary="$(echo $rvm_action | sed 's#do$##')"
-
if [[ -x "$rvm_ruby_home/bin/$binary" ]] ; then
- rm -f "$rvm_path/gems/cache"
- ln -nfs "$HOME/.gem/cache" "$rvm_path/gems/cache"
-
+ rm -f "$rvm_path/gems/cache"
+ ln -nfs "$HOME/.gem/cache" "$rvm_path/gems/cache"
binary="$rvm_ruby_home/bin/$binary"
+ elif [[ -x "$rvm_ruby_global_gems_path%global/bin/$binary" ]] ; then
+ binary="$rvm_gems_path/$rvm_ruby_string%global/bin/$binary"
elif [[ -x "$rvm_ruby_gem_home/bin/$binary" ]] ; then
binary="$rvm_ruby_gem_home/bin/$binary"
elif [[ "system" = "$rvm_ruby_string" ]] && [[ -x "$(which $binary)" ]] ; then
Please sign in to comment.
Something went wrong with that request. Please try again.