Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/local/rvm/scripts/functions/notes/warnings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/rvm/scripts/functions/notes/warnings/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

Hry