binscripts/rvm-auto-ruby in rvm-1.0.7 vs binscripts/rvm-auto-ruby in rvm-1.0.8

- old
+ new

@@ -1,19 +1,24 @@ #!/usr/bin/env bash if [[ -n "$rvm_path" && -s "$rvm_path/scripts/rvm" ]]; then source "$rvm_path/scripts/rvm" + elif [[ -s "/usr/local/lib/rvm" ]]; then source "/usr/local/lib/rvm" + elif [[ -s "$HOME/.rvm/scripts/rvm" ]]; then source "$HOME/.rvm/scripts/rvm" + elif [[ -s "/usr/local/rvm/scripts/rvm" ]]; then source "/usr/local/rvm/scripts/rvm" + else echo "Unable to detect rvm, please manually set the rvm_path env variable." >&2 exit 1 fi -[[ -s "$rvm_environments_path/default" ]] && source "$rvm_environments_path/default" +[[ -s "$rvm_path/environments/default" ]] && source "$rvm_path/environments/default" + rvm rvmrc load > /dev/null 2>&1 exec ruby "$@"