Fix logfile output getting stomped
The LOGFILE would get stomped due to a non-appending tee command. Change-Id: I851ee83171c27fc425c0d666fcf84437f0d118b2
This commit is contained in:
parent
9dce274dac
commit
baa8b42af8
2
stack.sh
2
stack.sh
@ -2287,7 +2287,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user