scripts/rvm in rvm-1.1.1 vs scripts/rvm in rvm-1.1.2

- old
+ new

@@ -50,14 +50,19 @@ if [[ "$rvm_selfcontained" = "0" ]] ; then rvm_prefix="/usr/local/" - else + elif [[ -n "$HOME" ]] ; then rvm_prefix="$HOME/." + else + + echo "No \$rvm_prefix was provided and $(id -un) has no \$HOME defined to find it with. Exploding violently." + exit 1 + fi fi # Fix rvm_prefix changes. @@ -109,10 +114,10 @@ # Makes sure rvm_bin_path is in PATH atleast once. __rvm_conditionally_add_bin_path else - printf "\n\$rvm_path is not set. rvm cannot load." + printf "\n\$rvm_path ($rvm_path) does not exist." fi unset rvm_prefix_needs_trailing_slash rvm_bin_path rvm_man_path rvm_rc_files rvm_gems_path rvm_gems_cache_path rvm_interactive_flag rvm_gems_path rvm_project_rvmrc_default rvm_gemset_separator fi