Skip to content
Browse files

Bugfix: 'rvm gem uninstall X' no longer errors on --no-rdoc

  • Loading branch information...
1 parent 85e61dd commit d5915df82d05102bd3abdbb350a4994d5b858ba6 @wayneeseguin wayneeseguin committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/utility
View
4 scripts/utility
@@ -593,7 +593,7 @@ __rvm_ruby_do() {
fi
fi
rvm_command="$rvm_ruby_home/bin/$binary $rvm_ruby_require -I$load_path $rvm_ruby_args"
- elif [[ "gem" = "$binary" ]] && match "$rvm_ruby_args" 'install' ; then
+ elif [[ "gem" = "$binary" ]] && match "$rvm_ruby_args" '^install' ; then
rvm_command="$rvm_ruby_home/bin/$binary $rvm_ruby_args --no-rdoc --no-ri"
else
rvm_command="$rvm_ruby_home/bin/$binary $rvm_ruby_args"
@@ -604,7 +604,7 @@ __rvm_ruby_do() {
touch ./log/$rvm_ruby_string/$rvm_action.log ./log/$rvm_ruby_string/$rvm_action.error.log
eval "$rvm_command" >> ./log/$rvm_ruby_string/$rvm_action.log 2>> ./log/$rvm_ruby_string/$rvm_action.error.log
else
- echo -e "\n\n\033[0;32m$rvm_ruby_string: $($rvm_ruby_home/bin/$binary -v | tr "\n" ' ')\033[0m\n"
+ echo -e "\n\n\033[0;32m$rvm_ruby_string: $($rvm_ruby_home/bin/ruby -v | tr "\n" ' ')\033[0m\n"
eval "$rvm_command"
fi
result=$?

0 comments on commit d5915df

Please sign in to comment.
Something went wrong with that request. Please try again.