scripts/rvm-install in rvm-1.0.5 vs scripts/rvm-install in rvm-1.0.6

- old
+ new

@@ -381,10 +381,11 @@ for file in rvm rvmsudo rvm-shell rvm-auto-ruby ; do [[ -s "$rvm_bin_path/$file" ]] && chmod +x "$rvm_bin_path/$file" done; unset file printf "\n Copying manpages into place." -for man_file in $(ls "$install_source_path/man"); do + +for man_file in $(builtin cd "$install_source_path/man" ; find * -type f -maxdepth 0 -print); do rm -rf "$rvm_man_path/$man_file" cp -R "$install_source_path/man/$man_file" "$rvm_man_path/" done [[ "$upgrade_flag" = 0 ]] && ./scripts/notes