Project

General

Profile

« Previous | Next » 

Revision 9049

lib/sh/util.sh: echo_cmd (): don't include leading extern because it clutters up the output and is implied by the log_level

View differences:

lib/sh/util.sh
165 165
}
166 166
alias limit_stderr_cmd='limit_stderr_cmd ' # last space alias-expands next word
167 167

  
168
echo_cmd () { if can_log; then echo "$PS4$*" >&2; fi; }
168
echo_cmd ()
169
{
170
	if can_log; then
171
		case "$1" in extern) shift;; esac # extern implied by the log_level
172
		echo "$PS4$*" >&2
173
	fi
174
}
169 175

  
170 176
echo_run () { echo_cmd "$@"; "$@"; }
171 177

  

Also available in: Unified diff