Skip to content

Commit

Permalink
move use/install ruby code to ruby case, fix #1205
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 7, 2012
1 parent b651de2 commit cc0f9a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/cli
Expand Up @@ -167,14 +167,6 @@ __rvm_parse_args()
;;

do|exec)
if
[[ "$rvm_token" == "ruby" ]] &&
[[ "$rvm_action" == "install" || "$rvm_action" == "use" ]]
then
rvm_ruby_string=ruby
rvm_ruby_strings=ruby
continue
fi
if
[[ -z "$next_token" ]]
then
Expand All @@ -188,6 +180,14 @@ __rvm_parse_args()
;;

gem|rake|ruby)
if
[[ "$rvm_token" == "ruby" ]] &&
[[ "$rvm_action" == "install" || "$rvm_action" == "use" ]]
then
rvm_ruby_string=ruby
rvm_ruby_strings=ruby
continue
fi
# deprecated 2011.10.11 for RVM 1.9.0, removed 2012.09.13 for RVM 1.16.0
rvm_action=error
rvm_error_message="Please note that \`rvm $rvm_token ...\` was removed, try \`$rvm_token $next_token $*\` or \`rvm all do $rvm_token $next_token $*\` instead."
Expand Down

0 comments on commit cc0f9a0

Please sign in to comment.