scripts/rvm-install in rvm-1.0.9 vs scripts/rvm-install in rvm-1.0.10

- old
+ new

@@ -38,10 +38,19 @@ printf "\n\nWARNING: You have RUBYOPT set in your current environment. This may interfere with normal rvm" printf "\n operation. If errors show up, please try unsetting RUBYOPT first.\n" fi } +# Regenerates a users wrappers as part of the update. +regenerate_wrappers() { + printf "\n" + if command -v __rvm_regenerate_wrappers >/dev/null; then + __rvm_regenerate_wrappers + fi + printf "\n" +} + andand_return_instructions() { printf " This means that if you see something like: '[ -z \"\$PS1\" ] && return' @@ -491,10 +500,19 @@ [[ -s "${rvm_bin_path:-"$rvm_path/bin"}/$file" ]] && chmod +x "${rvm_bin_path:-"$rvm_path/bin"}/$file" done +# Cleanup any .swp files that might have appeared. +files=($( find "$rvm_path/" -mindepth 1 -maxdepth 2 -iname '*.swp' -type f )) + +for file in "${files[@]}" ; do + + [[ -f "$file" ]] && rm -f "$file" + +done + printf "\n Copying manpages into place." files=($(builtin cd "$install_source_path/man" ; find . -maxdepth 1 -mindepth 1 -type f -print)) for file in "${files[@]//.\/}" ; do @@ -512,9 +530,11 @@ if [[ ${upgrade_flag:-0} -eq 1 ]] ; then upgrade_notes check_rubyopt_conditions + + regenerate_wrappers printf "\nUpgrade of RVM in $rvm_path/ is complete.\n\n" else