Permalink
Browse files

fix outputing commands in debug mode

  • Loading branch information...
1 parent 51402ce commit 06f7d2eeb3adf1f6a4300777d1085eff19192ee8 @mpapis mpapis committed Jan 24, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 scripts/functions/logging
  2. +1 −1 scripts/functions/utility
@@ -94,7 +94,7 @@ rvm_debug()
}
rvm_debug_stream()
{
- (( ${rvm_debug_flag:-0} && ${rvm_trace_flag:-0} )) || return 0
+ (( ${rvm_debug_flag:-0} || ${rvm_trace_flag:-0} )) || return 0
if rvm_pretty_print stdout
then cat - | awk '{print "'"${rvm_debug_clr:-}"'"$0"'"${rvm_reset_clr:-}"'"}'
else cat -
@@ -105,7 +105,7 @@ __rvm_log_command()
[[ -d "${_log%\/*}" ]] || \mkdir -p "${_log%\/*}"
[[ -f "${_log}" ]] || \rm -f "${_log}"
{
- printf "%b" "[$(date +'%Y-%m-%d %H:%M:%S')] ${_command[*]}\n"
+ printf "%b" "[$(date +'%Y-%m-%d %H:%M:%S')] ${_command_name}\n"
if is_a_function "${_command_name}"
then typeset -f "${_command_name}"
fi

0 comments on commit 06f7d2e

Please sign in to comment.