scripts/rvm-install in rvm-0.0.89 vs scripts/rvm-install in rvm-0.0.90
- old
+ new
@@ -1,15 +1,16 @@
#!/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 unset rvm_path ; fi
if [[ -z "$rvm_path" ]] ; then
+ unset rvm_path
if [[ "root" = "$(whoami)" ]] ; then
- rvm_path="${rvm_path:-/usr/local/rvm}"
+ rvm_path="/usr/local/rvm"
else
- rvm_path="${rvm_path:-$HOME/.rvm}"
+ 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
fi
fi
source scripts/initialize