scripts/help in rvm-1.0.5 vs scripts/help in rvm-1.0.6
- old
+ new
@@ -9,16 +9,16 @@
action="${args[1]}"
args="$(echo ${args[@]:2}) " # Strip trailing / leading / extra spacing.
if [[ ! -z "$command" ]] && [[ -s "${rvm_help_path}/${command}" ]] ; then
if [[ ! -z "$action" ]] && [[ -s "${rvm_help_path}/${command}/${action}" ]] ; then
- "${PAGER:-less}" "${rvm_help_path}/${command}/${action}"
+ less "${rvm_help_path}/${command}/${action}"
else
- "${PAGER:-less}" "${rvm_help_path}/${command}"
+ less "${rvm_help_path}/${command}"
fi
else
- "${PAGER:-less}" "${rvm_path:-$HOME/.rvm}/README"
- "$rvm_scripts_path/log" "info" "Commands available with 'rvm help':\n\n $(builtin cd "${rvm_help_path}" ; \ls | \tr "\n" ' ')"
+ less "${rvm_path:-$HOME/.rvm}/README"
+ "$rvm_scripts_path/log" "info" "Commands available with 'rvm help':\n\n $(builtin cd "${rvm_help_path}" ; find * -type f -maxdepth 0 -print | \tr "\n" ' ')"
fi
"$rvm_scripts_path/log" "info" "For additional information please visit RVM's documentation website:\n\n http://rvm.beginrescueend.com/"
"$rvm_scripts_path/log" "info" "If you still cannot find what an answer to your question, find me 'wayneeseguin' in #rvm on irc.freenode.net:\n\n http://webchat.freenode.net/?channels=rvm\n"