scripts/rvm-install in rvm-0.1.38 vs scripts/rvm-install in rvm-0.1.39

- old
+ new

@@ -77,10 +77,16 @@ cwd=$(pwd) source_path="${source_path:-$cwd}" rvm_archives_path="${rvm_archives_path:-"$rvm_path/archives"}" rvm_src_path="${rvm_src_path:-"$rvm_path/src"}" rvm_log_path="${rvm_log_path:-"$rvm_path/log"}" -rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}" + +if [[ "root" = "$(whoami)" ]] ; then + rvm_bin_path="${rvm_bin_path:-"/usr/local/bin"}" +else + rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}" +fi + rvm_gems_path="${rvm_gems_path:-"$rvm_path/gems"}" rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}" rvm_scripts_path="${rvm_scripts_path:-"$rvm_path/scripts"}" rvm_config_path="${rvm_config_path:-"$rvm_path/config"}" rvm_hooks_path="${rvm_hooks_path:-"$rvm_path/hooks"}"