Project

General

Profile

« Previous | Next » 

Revision 9295

bugfix: lib/sh/util.sh: command__set_fds(): cmd_log_fd = log_fd: need to increase the log_level after can_log is checked, to avoid limiting the command output itself

View differences:

util.sh
436 436
function command__set_fds()
437 437
{
438 438
	ensure_nested_func
439
	if test "$cmd_log_fd" = "$log_fd"; then log++; log++; fi # default case
440 439
	local src
441 440
	if can_log; then src="&$log_fd"; else src=/dev/null; fi
441
	if test "$cmd_log_fd" = "$log_fd"; then log++; log++; fi # default case
442 442
	set_fds "$cmd_log_fd>$src"
443 443
}
444 444

  

Also available in: Unified diff