scripts/selector in rvm-0.1.2 vs scripts/selector in rvm-0.1.3

- old
+ new

@@ -151,12 +151,15 @@ rvm_url=$rvm_ruby_repo_url unset rvm_ruby_configure rvm_ruby_make rvm_ruby_make_install ;; ruby) - rvm_ruby_repo_url="${rvm_ruby_repo_url:-"$(__rvm_db "ruby_repo_url")"}" - if [[ -z "$rvm_ruby_version" ]] ; then $rvm_scripts_path/log "fail" "Unknown ruby version: $rvm_ruby_version" ; fi + if [[ -z "$rvm_ruby_version" ]] && [[ -z "$rvm_head_flag" ]]; then + $rvm_scripts_path/log "fail" "Unknown ruby version: $rvm_ruby_version" + else + rvm_ruby_repo_url="${rvm_ruby_repo_url:-"$(__rvm_db "ruby_repo_url")"}" + fi ;; current) ruby_binary="$(which binary 2>/dev/null)" if $rvm_scripts_path/match "$ruby_binary" "rvm" ; then @@ -383,11 +386,9 @@ elif $rvm_scripts_path/match "$string" "^preview" ; then rvm_ruby_patch_level="$string" elif $rvm_scripts_path/match "$string" "^rc[0-9]" ; then rvm_ruby_patch_level="$string" elif $rvm_scripts_path/match "$string" "^[0-9]\.[0-9]" ; then - if [[ "1.8" = "$string" ]] ; then string="1.8.6" ; fi - if [[ "1.9" = "$string" ]] ; then string="1.9.1" ; fi rvm_ruby_version="$string" unset rvm_ruby_revision rvm_ruby_tag elif $rvm_scripts_path/match "$string" "^p[0-9]" ; then rvm_ruby_patch_level="$string" elif $rvm_scripts_path/match "$string" "^[0-9][0-9]" ; then