Skip to content

Commit

Permalink
give hint when sudo and PATH error
Browse files Browse the repository at this point in the history
  • Loading branch information
leoj3n committed Jan 22, 2015
1 parent c8a7818 commit 04e2f13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/rvm
Expand Up @@ -214,6 +214,13 @@ then
Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see:
https://github.com/wayneeseguin/rvm/issues/3212
" >&2
if
[[ -n "${SUDO_USER:-}" ]]
then
echo "Hint: To fix PATH errors try using 'rvmsudo' instead of 'sudo', see:
http://stackoverflow.com/questions/27784961/received-warning-message-path-set-to-rvm-after-updating-ruby-version-using-rvm/28080063#28080063
" >&2
fi
fi
unset __path_to_ruby

Expand Down

0 comments on commit 04e2f13

Please sign in to comment.