scripts/hook in rvm-1.0.4 vs scripts/hook in rvm-1.0.5

- old
+ new

@@ -3,10 +3,10 @@ declare rvm_verbose_flag=${rvm_verbose_flag:-0} declare rvm_hook=${rvm_hook:-""} if [[ -n "$rvm_hook" ]] ; then if [[ -s "$rvm_hooks_path/$rvm_hook" ]] ; then - if [[ $rvm_verbose_flag -eq 1 ]] || [[ "$rvm_debug_flag" -eq 1 ]] ; then + if [[ ${rvm_verbose_flag:-0} -gt 0 || ${rvm_debug_flag:-0} -gt 0 ]] ; then "$rvm_scripts_path/log" "info" "running hook $rvm_hook" fi source "$rvm_hooks_path/$rvm_hook" fi fi