Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not store system ruby as root.

  • Loading branch information...
commit 55bdcd210d42d64269d38db3955546bc6e900db4 1 parent c4fd4db
@wayneeseguin wayneeseguin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  scripts/utility
View
2  scripts/utility
@@ -276,7 +276,7 @@ RubyWrapper
# Load default ruby, if default is not set load system ruby.
__rvm_load_defaults() {
- if [[ ! -s "$rvm_config_path/system" ]] ; then
+ if [[ ! -s "$rvm_config_path/system" ]] && [[ "root" != "$(whoami)" ]] ; then
for variable in RUBY_VERSION GEM_HOME GEM_PATH BUNDLE_PATH MY_RUBY_HOME ; do
eval value=\$${variable}
if [[ -z "${value/ /}" ]] ; then
Please sign in to comment.
Something went wrong with that request. Please try again.