Skip to content
This repository
tag: 1.1.11
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (16 sloc) 0.673 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/usr/bin/env bash

if [[ -n "$rvm_path" && -s "$rvm_path/scripts/rvm" ]]; then
  source "$rvm_path/scripts/rvm" > /dev/null 2>&1

elif [[ -s "/usr/local/lib/rvm" ]]; then
  source "/usr/local/lib/rvm" > /dev/null 2>&1

elif [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
  source "$HOME/.rvm/scripts/rvm" > /dev/null 2>&1

elif [[ -s "/usr/local/rvm/scripts/rvm" ]]; then
  source "/usr/local/rvm/scripts/rvm" > /dev/null 2>&1
else
  echo "Unable to detect rvm, please manually set the rvm_path env variable." >&2
  exit 1
fi

[[ -s "$rvm_path/environments/default" ]] && source "$rvm_path/environments/default"

rvm_promptless=1 rvm rvmrc load > /dev/null 2>&1

exec ruby "$@"
Something went wrong with that request. Please try again.