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
diff --git a/stack.sh b/stack.sh
index 71e7317..449eb06 100755
--- a/stack.sh
+++ b/stack.sh
@@ -518,7 +518,7 @@
# 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"