scripts/selector in rvm-0.0.74 vs scripts/selector in rvm-0.0.75

- old
+ new

@@ -190,10 +190,16 @@ else source $rvm_path/system fi fi + if [[ "root" = "$(whoami)" ]] ; then + for binary in erb gem irb rake rdoc ri ruby testrb ; do + rm -f /usr/local/bin/$binary + done + fi + else GEM_HOME=$rvm_ruby_gem_home ; export GEM_HOME GEM_PATH=$rvm_ruby_gem_home ; export GEM_PATH MY_RUBY_HOME=$rvm_ruby_home ; export MY_RUBY_HOME RUBY_VERSION=$rvm_ruby_string ; export RUBY_VERSION @@ -211,9 +217,15 @@ PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -) PATH=$rvm_bin_path:$PATH ; export PATH PATH=$MY_RUBY_HOME/bin:$GEM_HOME/bin:$rvm_path/bin:$PATH ; export PATH + if [[ "root" = "$(whoami)" ]] ; then + for binary in erb gem irb rake rdoc ri ruby testrb ; do + rm -f /usr/local/bin/$binary + ln -nfs $rvm_ruby_home/bin/$binary /usr/local/bin/$binary + done + fi fi if [[ ! -z "$rvm_default_flag" ]] && [[ "default" != "$rvm_ruby_interpreter" ]] ; then if [[ "system" = "$rvm_ruby_interpreter" ]] ; then rm -f $rvm_path/default