aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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