Permalink
Browse files

Bugfix: Search global path for 'do' actions.

  • Loading branch information...
1 parent f24529f commit 42fe1f873037cdaf5ee11a79e750da48116481d6 @wayneeseguin wayneeseguin committed Feb 18, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 scripts/utility
View
@@ -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

0 comments on commit 42fe1f8

Please sign in to comment.