Revision 9065
Added by Aaron Marcuse-Kubitza about 11 years ago
util.sh | ||
---|---|---|
164 | 164 |
|
165 | 165 |
echo_cmd () |
166 | 166 |
{ |
167 |
if can_log; then |
|
168 |
case "$1" in extern) shift;; esac # extern implied by the log_level |
|
169 |
echo "$PS4$*" >&2 |
|
170 |
fi |
|
167 |
case "$1" in extern) shift;; esac # extern implied by the log_level |
|
168 |
log "$*" |
|
171 | 169 |
} |
172 | 170 |
|
173 | 171 |
echo_run () { cmd2rel_path; echo_cmd "$@"; "$@"; } |
Also available in: Unified diff
lib/sh/util.sh: echo_cmd (): use new log ()