scripts/rvm in rvm-0.0.82 vs scripts/rvm in rvm-0.0.83

- old
+ new

@@ -11,19 +11,24 @@ if [[ -z "$rvm_path" ]] ; then unset rvm_path ; fi if [[ "root" = "$(whoami)" ]] ; then rvm_path="${rvm_path:-/usr/local/rvm}" else - rvm_path="${rvm_path:-$HOME/.rvm}" + if [[ -d "$HOME/.rvm" ]] ; then + rvm_path="${rvm_path:-$HOME/.rvm}" + else + rvm_path="${rvm_path:-/usr/local/rvm}" + fi fi source $rvm_path/scripts/array source $rvm_path/scripts/initialize source $rvm_path/scripts/utility source $rvm_path/scripts/selector source $rvm_path/scripts/ruby-installer # TODO: Script not function. source $rvm_path/scripts/cli source $rvm_path/scripts/gems +source $rvm_path/scripts/libraries rvm_loaded_flag=1 ; export rvm_loaded_flag rvm_version="$(cat "${rvm_path}/lib/VERSION.yml" | tail -n 3 | sed 's/^.*: //g' | tr "\n" '.' | sed 's/\.$//')" ; export rvm_version