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

- old
+ new

@@ -1,14 +1,23 @@ #!/usr/bin/env bash declare rvm_verbose_flag=${rvm_verbose_flag:-0} + declare rvm_hook=${rvm_hook:-""} if [[ -n "$rvm_hook" ]] ; then + if [[ -s "$rvm_path/hooks/$rvm_hook" ]] ; then + if [[ ${rvm_verbose_flag:-0} -gt 0 || ${rvm_debug_flag:-0} -gt 0 ]] ; then + "$rvm_path/scripts/log" "info" "running hook $rvm_hook" + fi + source "$rvm_path/hooks/$rvm_hook" + fi + fi + unset rvm_hook