aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Laughlin <clark.laughlin@linaro.org>2014-02-24 13:27:47 -0600
committerClark Laughlin <clark.laughlin@linaro.org>2014-02-24 13:27:47 -0600
commitb32139b6ad1d1343cd68c0f1e74f5d8e6855778c (patch)
tree603ed4875dbb7958b19de7a24578a51920d691eb
parente434db58c35508cd784aaad25a4cc1509d29777c (diff)
fix logicHEADmaster
-rwxr-xr-xstack.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/stack.sh b/stack.sh
index c6000ff..1400869 100755
--- a/stack.sh
+++ b/stack.sh
@@ -477,14 +477,18 @@ function spinner() {
# Echo text to the log file, summary log file and stdout
# echo_summary "something to say"
function echo_summary() {
- if [[ -t 3 && "$VERBOSE" != "True" && "${DISABLE_PROGRESS_SPINNER}" != "True" ]]; then
- kill >/dev/null 2>&1 $LAST_SPINNER_PID
- if [ ! -z "$LAST_SPINNER_PID" ]; then
- printf "\b\b\bdone\n" >&3
+ if [[ -t 3 && "$VERBOSE" != "True" ]]; then
+ if [[ "${DISABLE_PROGRESS_SPINNER}" != "True" ]] ; then
+ kill >/dev/null 2>&1 $LAST_SPINNER_PID
+ if [ ! -z "$LAST_SPINNER_PID" ]; then
+ printf "\b\b\bdone\n" >&3
+ fi
+ echo -n -e $@ >&6
+ spinner &
+ LAST_SPINNER_PID=$!
+ else
+ echo -e $@ >&6
fi
- echo -n -e $@ >&6
- spinner &
- LAST_SPINNER_PID=$!
else
echo -e $@ >&6
fi