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.145.164.205
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : chruby.sh
#!/usr/bin/env bash

# Set RUBIES when sourced.
RUBIES=($( \command \ls -1d "$rvm_path/rubies"/* 2>/dev/null ))

# Install rubies via rvm and reload RUBIES
function mrvm()
{
  \typeset __result=0
  # duplication marker jdgkjnfnkjdngjkfnd4fd
  if
    [[ -z "$rvm_path" ]]
  then
    \typeset reset_rvm_path=true
    if [[ -n "${BASH_SOURCE:-$_}" && -f "${BASH_SOURCE:-$_}" ]]
    then
      export rvm_path="${BASH_SOURCE:-$_}"
      rvm_path="$( \command \cd "${rvm_path%/scripts/extras/chruby.sh}">/dev/null; pwd )"
    elif [[ -x "$HOME/.rvm/bin/rvm" ]]
    then export rvm_path="$HOME/.rvm"
    elif [[ -x "/usr/local/rvm/bin/rvm" ]]
    then export rvm_path="/usr/local/rvm"
    else return 127
    fi
  fi
  "$rvm_path/bin/rvm" "$@" || __result=$?
  RUBIES=($( \command \ls -1d "$rvm_path/rubies"/* 2>/dev/null ))
  if [[ -n "${reset_rvm_path:-}" ]]
  then unset rvm_path reset_rvm_path
  fi
  return ${__result}
}
© 2025 GrazzMean