Permalink
Browse files

msg to stderr when no ruby found, fix #785

  • Loading branch information...
1 parent d7087d7 commit 6c6e1cc5923107e5cb972ccbe110052aa207b628 @mpapis mpapis committed Feb 26, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 scripts/selector
View
9 scripts/selector
@@ -506,17 +506,12 @@ __rvm_use()
if [[ ! -d "$MY_RUBY_HOME" ]]
then
- if [[ "$rvm_ruby_interpreter" == "$rvm_ruby_string" ]]
- then
- rvm_warn "$rvm_ruby_string is not installed."
- else
- rvm_warn "$rvm_ruby_interpreter $rvm_ruby_string is not installed."
- fi
-
if [[ ${rvm_install_on_use_flag:-0} -eq 1 ]]
then
+ rvm_warn "$rvm_ruby_string is not installed."
"$rvm_scripts_path/manage" "install" "$rvm_ruby_string"
else
+ rvm_error "$rvm_ruby_string is not installed."
rvm_log "To install do: 'rvm install $rvm_ruby_string'"
return 1
fi

0 comments on commit 6c6e1cc

Please sign in to comment.