Skip to content

Commit

Permalink
Bugfix: 'rvm gem uninstall X' no longer errors on --no-rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Nov 12, 2009
1 parent 85e61dd commit d5915df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utility
Expand Up @@ -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"
Expand All @@ -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=$?
Expand Down

0 comments on commit d5915df

Please sign in to comment.