Sha256: b7088920396e4a4a7102aa719a176ed431f571ef5d637308970085dbff9ed3eb

Contents?: true

Size: 428 Bytes

Versions: 6

Compression:

Stored size: 428 Bytes

Contents

#!/bin/bash

# Calculates a default rvm path

# Check first.
if [[ -n "$rvm_path" ]]; then
  echo "$rvm_path"
  exit
fi

# Load extra files.

[[ -s ~/.rvmrc ]] && source ~/.rvmrc >/dev/null 2>&1
[[ -s /etc/rvmrc ]] && source /etc/rvmrc >/dev/null 2>&1

if [[ -n "$rvm_path" ]]; then
  echo "$rvm_path"
elif [[ -d ~/.rvm ]]; then
  echo "~/.rvm"
elif [[ -d /usr/local/rvm ]]; then
  echo "/usr/local/rvm"
else
  exit 1
fi

exit 0

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rvm-1.11.3.9 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3.8 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3.7 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3.6 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3.5 lib/rvm/shell/calculate_rvm_path.sh
rvm-1.11.3.4 lib/rvm/shell/calculate_rvm_path.sh