aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Laughlin <clark.laughlin@linaro.org>2014-02-24 11:37:44 -0600
committerClark Laughlin <clark.laughlin@linaro.org>2014-02-24 11:37:44 -0600
commit56284e87a7d8c93045b9771a2602fc2ddee6c4ec (patch)
treea113aea0e0ff12444cbd9ff401c731e90b60db54
parent2846ed2b56638349d47ba8bf8fa7600205bcc3ec (diff)
provide way to disable progress spinner to not clutter output log
-rwxr-xr-xstack.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack.sh b/stack.sh
index 15e1430..8888c1f 100755
--- a/stack.sh
+++ b/stack.sh
@@ -477,7 +477,7 @@ 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" ]]; then
+ if [[ -t 3 && "$VERBOSE" != "True" && -z "${DISABLE_PROGRESS_SPINNER}" ]]; then
kill >/dev/null 2>&1 $LAST_SPINNER_PID
if [ ! -z "$LAST_SPINNER_PID" ]; then
printf "\b\b\bdone\n" >&3