Revision 9290
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
419 | 419 |
# to view only explicitly-displayed errors: explicit_errors_only=1 script... |
420 | 420 |
{ |
421 | 421 |
kw_params cmd_log_fd |
422 |
: "${cmd_log_fd=$log_fd}" # if not set, assume it's a script using util.sh
|
|
422 |
local cmd_log_fd="${cmd_log_fd-$log_fd}" # assume command uses util.sh
|
|
423 | 423 |
|
424 | 424 |
cmd2rel_path; (echo_params; can_log) && indent || true |
425 | 425 |
( |
Also available in: Unified diff
bugfix: lib/sh/util.sh: command(): need to make $cmd_log_fd a local var when setting its default value