scripts/tools in rvm-1.0.11 vs scripts/tools in rvm-1.0.13

- old
+ new

@@ -1,20 +1,23 @@ #!/usr/bin/env bash source "$rvm_path/scripts/base" -usage() { +usage() +{ echo "Usage: rvm tools {identifier,path-identifier,strings}" 1>&2 exit 1 } # Return the identifier that's current in use. -tools_identifier() { +tools_identifier() +{ __rvm_environment_identifier } -tools_path_identifier() { +tools_path_identifier() +{ if [[ -z "$1" || ! -d "$1" ]]; then echo "Usage: rvm tools path-identifier 'path-to-check'" return 1 fi @@ -24,10 +27,11 @@ rvmrc_result="$?" __rvm_environment_identifier exit $rvmrc_result } -tools_strings() { +tools_strings() +{ for ruby_name in "$@"; do __rvm_unset_ruby_variables rvm_ruby_string="$ruby_name" if { __rvm_ruby_string && __rvm_select; } >/dev/null 2>&1; then basename "$rvm_ruby_gem_home"