wayneeseguin/rvm — Issue #584: rvm command should guard against unnecessary use as root
Author: reinh
Created: 2011-11-08 19:50:30+00:00
State: open

I recently ran into a situation where some of the gems in `~/.rvm` where chowned root. The most likely explanation is that I accidentally ran an rvm command with sudo. If rvm did a check for `[ $UID = 0 ]` before modifying ~/.rvm, it could fail early and prevent the user from doing something that would leave their rvm installation in a potentially inconsistent state.