shlib.sh: Capture stderr output when show_progress in effect
commit7bdff9afd2f4582e77d7db9166749c5ce0dbaaa2
authorKyle J. McKay <mackyle@gmail.com>
Mon, 2 Dec 2013 04:03:36 +0000 (1 20:03 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 2 Dec 2013 04:03:36 +0000 (1 20:03 -0800)
tree271c23de116d22bb7242f24ff91a7b696b4a7228
parent7ddb53a0c50634ab76369ca9bafd3ea969f6a368
shlib.sh: Capture stderr output when show_progress in effect

When using the "bang" function, output is normally redirected into a
log file -- both stdout and stderr.  However, if show_progress is set
to a non-empty value, the output will also be sent to standard output
using a pipe through a tee command.

Move the '2>&1' redirection to before the pipe in case show_progress
is set so that stderr output also ends up in the log just like in
the show_progress unset case.
shlib.sh