scripts/rvm-utility in rvm-0.0.47 vs scripts/rvm-utility in rvm-0.0.48

- old
+ new

@@ -94,10 +94,14 @@ function __rvm_cleanup_variables { unset rvm_selected rvm_action rvm_ruby_interpreter rvm_ruby_patch_level rvm_ruby_version rvm_irbrc_file rvm_ruby_irbrc rvm_source_path rvm_path rvm_prefix_path rvm_ruby_package_name rvm_gem_path rvm_command rvm_error_message rvm_ruby_home rvm_ruby_binary rvm_gem_set_name rvm_ruby_tag rvm_ruby_rev rvm_url rvm_ruby_make rvm_ruby_configure rvm_ruby_make_install rvm_config_path rvm_ruby_string rvm_bin_path rvm_force_flag rvm_all_flag rvm_reconfigure_flag rvm_make_flags rvm_bin_flag rvm_load_flag rvm_dump_flag rvm_self_flag rvm_gem_flag rvm_rubygems_flag rvm_debug_flag rvm_delete_flag rvm_summary_flag rvm_test_flag _rvm_spec_flag rvm_json_flag rvm_yaml_flag } +function __rvm_unset_ruby_variables { + unset rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_configure rvm_ruby_make rvm_ruby_make_install rvm_ruby_rev rvm_ruby_tag rvm_major_version rvm_minor_version rvm_gem_set_name rvm_gem_home rvm_ruby_binary rvm_ruby_package_name rvm_ruby_home rvm_ruby_log_path rvm_ruby_src_path rvm_ruby_irbrc rvm_selected rvm_ruby_selector +} + # TODO: root user loadng of /etc/rvmrc function __rvm_load-rvmrc { if [ -s ~/.rvmrc ] ; then source ~/.rvmrc ; fi } @@ -445,11 +449,10 @@ __rvm_version __rvm_update_rvm __rvm_version fi __rvm_reload - __rvm_select # if [ "$rvm_gem_flag" ] ; then __rvm_gem_scripts ; fi if [ "$rvm_bin_flag" ] ; then __rvm_bin_scripts ; fi if [ "$rvm_rubygems_flag" ] ; then __rvm_rubygems_setup ; fi } @@ -631,10 +634,10 @@ echo "$rvm_code" > /tmp/$$.rb cat $rvm_ruby_file >> /tmp/$$.rb echo -e "\n end\nend\n" >> /tmp/$$.rb unset rvm_code rvm_ruby_args="/tmp/$$.rb" - rvm_action="rubydo" + rvm_action="ruby" if [ ! -z "$rvm_debug_flag" ] ; then echo -e "/tmp/$$.rb:\n$(cat /tmp/$$.rb)" ; fi __rvm_do } function __rvm_ruby_string {