Skip to content

Commit

Permalink
rbx searches for the name in binaries, fix #1476
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Jan 27, 2013
1 parent a6dd97f commit 2f150aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/selector
Expand Up @@ -100,15 +100,16 @@ __rvm_select()
if
(( ${rvm_nightly_flag:=0} == 1 ))
then
typeset org_rvm_ruby_patch_level
typeset org_rvm_ruby_patch_level _rvm_ruby_name
if [[ "$rvm_ruby_version" == head ]]
then rvm_ruby_version=""
fi
rvm_debug "searching for binary rbx ${rvm_ruby_version:-}${rvm_ruby_version:+-}${rvm_ruby_patch_level}*${rvm_ruby_name:+-}${rvm_ruby_name:-}"
org_rvm_ruby_patch_level="$rvm_ruby_patch_level"
_rvm_ruby_name="${rvm_ruby_name:-detected_rvm_ruby_name}"
rvm_ruby_patch_level="$(
__list_remote_rbx_for $( __rvm_system_path_for rbx ) |
grep ${rvm_ruby_version:-}${rvm_ruby_version:+-}${org_rvm_ruby_patch_level}*${rvm_ruby_name:+-}${rvm_ruby_name:-} |
grep ${rvm_ruby_version:-}${rvm_ruby_version:+-}${org_rvm_ruby_patch_level}*${_rvm_ruby_name:+-}${_rvm_ruby_name:-} |
tail -n 1
)"
[[ -n "${rvm_ruby_patch_level:-}" ]] ||
Expand Down

0 comments on commit 2f150aa

Please sign in to comment.