Merge "Fix logfile output getting stomped"

This commit is contained in:
Jenkins
2012-09-24 20:57:24 +00:00
committed by Gerrit Code Review

View File

@@ -2294,7 +2294,7 @@ set +o xtrace
if [[ -n "$LOGFILE" ]]; then
exec 1>&3
# Force all output to stdout and logs now
exec 1> >( tee "${LOGFILE}" ) 2>&1
exec 1> >( tee -a "${LOGFILE}" ) 2>&1
else
# Force all output to stdout now
exec 1>&3