Skip to content

Commit

Permalink
Bugfix: Search global path for 'do' actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Feb 18, 2010
1 parent f24529f commit 42fe1f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/utility
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42fe1f8

Please sign in to comment.