diff options
author | Clark Laughlin <clark.laughlin@linaro.org> | 2014-02-24 13:27:47 -0600 |
---|---|---|
committer | Clark Laughlin <clark.laughlin@linaro.org> | 2014-02-24 13:27:47 -0600 |
commit | b32139b6ad1d1343cd68c0f1e74f5d8e6855778c (patch) | |
tree | 603ed4875dbb7958b19de7a24578a51920d691eb | |
parent | e434db58c35508cd784aaad25a4cc1509d29777c (diff) |
-rwxr-xr-x | stack.sh | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -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 |