File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 88# ==============================================================================
99
1010# Unless $LOG_FD is already set to a valid fd
11- if ! [[ " ${LOG_FD-} " =~ ^[0-9]+$ ]] || ! { : >& " ${LOG_FD-2 } " ; } 2> /dev/null; then
11+ if ! [[ " ${LOG_FD: - } " =~ ^[0-9]+$ ]] || ! { : >& " ${LOG_FD:- } " ; } 2> /dev/null; then
1212 # Preserve the original STDOUT on a free fd (stored in $LOG_FD) so that we can
13- # log to it without interfering with the STDOUT of subshells whose output we
14- # want to capture for other purposes.
13+ # log to it without interfering with the STDOUT of subshells or child processes
14+ # whose output we want to capture for other purposes.
1515 exec {LOG_FD}>&1
16+ # Export LOG_FD for use by child bashio processes.
17+ export LOG_FD
1618fi
1719
1820# ------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments