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:
Mate Lakat 2013-09-25 15:38:24 +01:00
parent 5a9609bed3
commit de60f48ad9

View File

@ -518,7 +518,7 @@ if [[ -n "$LOGFILE" ]]; then
# Set fd 1 and 2 to primary logfile
exec 1> "${LOGFILE}" 2>&1
# Set fd 6 to summary logfile and stdout
exec 6> >( tee "${SUMFILE}" /dev/fd/3 )
exec 6> >( tee "${SUMFILE}" >&3 )
fi
echo_summary "stack.sh log $LOGFILE"