fix tee errors
Do not specify /dev/fd3 directly, use >&3 instead. This change enables to use stack.sh as an upstart script, and with VERBOSE=False, it will print the expected messages. Fixes bug 1230342 Change-Id: I6e3a81fd435e8c46d553bfdee08f8bf42d0f4387
This commit is contained in:
parent
5a9609bed3
commit
de60f48ad9
2
stack.sh
2
stack.sh
@ -518,7 +518,7 @@ if [[ -n "$LOGFILE" ]]; then
|
|||||||
# Set fd 1 and 2 to primary logfile
|
# Set fd 1 and 2 to primary logfile
|
||||||
exec 1> "${LOGFILE}" 2>&1
|
exec 1> "${LOGFILE}" 2>&1
|
||||||
# Set fd 6 to summary logfile and stdout
|
# Set fd 6 to summary logfile and stdout
|
||||||
exec 6> >( tee "${SUMFILE}" /dev/fd/3 )
|
exec 6> >( tee "${SUMFILE}" >&3 )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo_summary "stack.sh log $LOGFILE"
|
echo_summary "stack.sh log $LOGFILE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user