#!/usr/bin/env bash

# make tracing easy
export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()}  \${LINENO} > "

# Tracing, if asked for - as early as possible
if
  [[ "$*" =~ --trace ]] || (( ${rvm_trace_flag:-0} > 0 ))
then
  set -x
  export rvm_trace_flag=1
fi

set -o errtrace

shopt -s extglob

source "$PWD/scripts/functions/installer"

install_rvm "$@"
