Browse code

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

Mate Lakat authored on 2013/09/25 23:38:24
Showing 1 changed files
... ...
@@ -518,7 +518,7 @@ if [[ -n "$LOGFILE" ]]; then
518 518
         # Set fd 1 and 2 to primary logfile
519 519
         exec 1> "${LOGFILE}" 2>&1
520 520
         # Set fd 6 to summary logfile and stdout
521
-        exec 6> >( tee "${SUMFILE}" /dev/fd/3 )
521
+        exec 6> >( tee "${SUMFILE}" >&3 )
522 522
     fi
523 523
 
524 524
     echo_summary "stack.sh log $LOGFILE"