scripts/tools in rvm-1.0.0 vs scripts/tools in rvm-1.0.1

- old
+ new

@@ -16,12 +16,17 @@ if [[ -z "$1" || ! -d "$1" ]]; then echo "Usage: rvm tools path-identifier 'path-to-heck'" return 1 fi # Change to the directory. Do in subshell to keep the env correct. - (source $rvm_scripts_path/rvm - cd "$1" >/dev/null 2>&1 - __rvm_environment_identifier) + ( + source "$rvm_scripts_path/rvm" + builtin cd "$1" + rvm_promptless=1 __rvm_project_rvmrc + rvmrc_result="$?" + __rvm_environment_identifier + exit $rvmrc_result + ) } tools_strings() { for ruby_name in "$@"; do __rvm_unset_ruby_variables