Sha256: 2fe591dfed7143388f5ae3537b02b98bcf3d89eefcb0be74d30c3a21f516b768

Contents?: true

Size: 1.23 KB

Versions: 24

Compression:

Stored size: 1.23 KB

Contents

#!/usr/bin/env bash

if [[ ${rvm_ignore_rvmrc:-0} -eq 0 ]]; then

  for rvmrc in /etc/rvmrc "$HOME/.rvmrc" ; do

    if [[ -f "$rvmrc" ]] ; then

      if grep -q '^\s*rvm .*$' "$rvmrc" ; then

        printf "\n  Error:
    $rvmrc is for rvm settings only.
    rvm CLI may NOT be called from within $rvmrc.
    Skipping the loading of $rvmrc
"
        exit 1

      else

        source "$rvmrc"

      fi

    fi

  done

fi

# Setup default sandbox value. See scripts/rvm for origin.
if [[ ${rvm_selfcontained:-0} -eq 0 ]]; then

  if [[ "root" = "$(whoami)" || -n "$rvm_prefix" && "$rvm_prefix" != "$HOME"/* ]]; then

    rvm_selfcontained=0

  else

    rvm_selfcontained=1

  fi

fi

if [[ -z "${rvm_prefix:-""}" ]] ; then

  if [[ ${rvm_selfcontained:-0} -eq 0 ]] ; then

    rvm_prefix="/usr/local/"

  else

    rvm_prefix="$HOME/."

  fi

fi

# Fix rvm_prefix changes.
echo "$rvm_prefix" | grep -vq '\(\/\|\.\)$' && [[ -d "$rvm_prefix/rvm/scripts" ]]

rvm_prefix_needs_trailing_slash="$?"

if [[ "$rvm_prefix" = "/usr/local" || "$rvm_prefix_needs_trailing_slash" = "0" ]]; then
  rvm_prefix="$rvm_prefix/"
fi

if [[ -z "${rvm_path:-""}" ]] ; then
  rvm_path="${rvm_prefix}rvm"
fi

source "$rvm_path/scripts/rvm"

export rvm_interactive_flag=0

rvm "$@"

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
rvm-1.1.3 binscripts/rvm
rvm-1.1.2 binscripts/rvm
rvm-1.1.1 binscripts/rvm
rvm-1.1.0 binscripts/rvm
rvm-1.0.23 binscripts/rvm
rvm-1.0.22 binscripts/rvm
rvm-1.0.21 binscripts/rvm
rvm-1.0.20 binscripts/rvm
rvm-1.0.19 binscripts/rvm
rvm-1.0.18 binscripts/rvm
rvm-1.0.17 binscripts/rvm
rvm-1.0.15 binscripts/rvm
gemrage-1.0.0 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm
gemrage-0.4.1 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm
gemrage-0.4.0 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm
gemrage-0.3.2 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm
gemrage-0.3.1 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm
gemrage-0.3.0 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm
gemrage-0.2.0 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm
gemrage-0.1.2 vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm