--user-install warning even when commented
stvhay opened this issue · comments
The rbenv-doctor utility gives a warning even if the --user-install line in /etc/gemrc is commented out.
Please remove
--user-install' flag from
/etc/gemrc'.
This is the gemrc file:
# Read about the gemrc format at http://guides.rubygems.org/command-reference/#gem-environment
# --user-install is used to install to $HOME/.gem/ by default since we want to separate
# pacman installed gems and gem installed gems
#gem: --user-install
Maybe this is a fix:
Line 144
if grep -q -e --user-install "$gemrc" 2>/dev/null; then
to
if grep -o -e '^[^#]*' /etc/gemrc | grep -e --user-install 2>/dev/null; then