scripts/rvm-install in rvm-0.0.90 vs scripts/rvm-install in rvm-0.0.91
- old
+ new
@@ -1,16 +1,15 @@
#!/usr/bin/env bash
if [[ -f /etc/rvmrc ]] ; then source /etc/rvmrc ; fi
if [[ -f "$HOME/.rvmrc" ]] ; then source "$HOME/.rvmrc" ; fi
-if [[ -z "$rvm_path" ]] ; then
+if [[ ! -d "$rvm_path" ]] || [[ "$rvm_path" = "/" ]] ; then
unset rvm_path
if [[ "root" = "$(whoami)" ]] ; then
rvm_path="/usr/local/rvm"
else
- if [[ -d "$HOME/.rvm" ]] ; then rvm_path="$HOME/.rvm" ; fi
- if [[ -d "/usr/local/bin/rvm" ]] && [[ -f "/usr/local/bin/rvm" ]] ; then rvm_path="${rvm_path:-"/usr/local/rvm"}" ; fi
+ rvm_path="$HOME/.rvm"
fi
fi
source scripts/initialize