scripts/set in rvm-0.1.34 vs scripts/set in rvm-0.1.35

- old
+ new

@@ -146,28 +146,14 @@ # Loop over a set or all rvm installed rubies to perform some action. # Record the results and report based on CLI selections. rubies=() ; successes=() ; errors=() ; statuses=() -# TODO: Extract the common functionality out of the if below -if [[ ! -z "$rvm_ruby_string" ]] ; then - unset rvm_ruby_interpreter rvm_ruby_version + +rvm_ruby_strings="${rvm_ruby_strings:-"$($rvm_scripts_path/list strings)"}" +for rvm_ruby_string in $(echo "$rvm_ruby_strings" | tr ',' ' ') ; do __rvm_ruby_do -elif [[ ! -z "$rvm_ruby_version" ]] ;then - for rvm_ruby_string in $(echo $rvm_ruby_version | tr ',' ' ') ; do - __rvm_ruby_do - done -elif [[ ! -z "$rvm_ruby_interpreter" ]] ; then - unset rvm_ruby_string rvm_ruby_version - __rvm_ruby_do -else # all - for full_binary in $rvm_rubies_path/*/bin/ruby ; do - if [[ -x "$full_binary" ]] ; then - rvm_ruby_string="$(dirname $full_binary | xargs dirname | xargs basename)" - __rvm_ruby_do - fi - done ; unset full_binary -fi +done if [[ ! -z "$rvm_summary_flag" ]] ; then __rvm_summary ; fi if [[ ! -z "$rvm_yaml_flag" ]] ; then __rvm_yaml ; fi if [[ ! -z "$rvm_json_flag" ]] ; then __rvm_json ; fi