Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.19.238.155
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : warning_gemrc
#!/usr/bin/env bash

__rvm_notes_warning_gemrc()
{
  if
    [[ -z "${rvm_ignore_gemrc_issues:-}" ]]
  then
    \typeset _check _gemrc _found
    _found=0

    for _gemrc in "/etc/gemrc" "${HOME}/.gemrc"
    do
      if
        [[ -r "${_gemrc}" ]]
      then
        for _check in " -n" --user-install gemhome gempath
        do
          if
            __rvm_grep -E -- '^'"${_check}"'|^[^#]*'"${_check}" "${_gemrc}" >/dev/null
          then
            (( _found++ ))
            rvm_warn "  * WARNING: Found <code>${_check}</code> <warn>in <code>${_gemrc}</code><warn>, please remove it, as it will break rubygems in RVM."
          fi
        done
      fi
    done
    if
      (( _found ))
    then
      rvm_warn "    If it is intended or a mistake <code>export rvm_ignore_gemrc_issues=1</code> <warn>to avoid this warning.\n"
    fi
  fi
}

__rvm_notes_warning_gemrc
© 2025 GrazzMean