scripts/selector in rvm-1.0.13 vs scripts/selector in rvm-1.0.14

- old
+ new

@@ -267,15 +267,16 @@ unset GEM_HOME GEM_PATH BUNDLE_PATH MY_RUBY_HOME RUBY_VERSION IRBRC new_path="$(__rvm_remove_rvm_from_path ; printf "$PATH"):${rvm_bin_path:-"$rvm_path/bin"}" - if [[ -s $rvm_path/config/system ]] ; then + if [[ -s "$rvm_path/config/system" ]] ; then \grep "MY_RUBY_HOME='$rvm_path/rubies" "$rvm_path/config/system" > /dev/null if [[ $? -eq 0 ]] ; then - [[ -f "$rvm_path/config/system" ]] && \rm -f $rvm_path/config/system # 'system' should *not* point to an rvm ruby. + # 'system' should *not* point to an rvm ruby. + [[ -f "$rvm_path/config/system" ]] && \rm -f "$rvm_path/config/system" else source "$rvm_path/config/system" fi fi