File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ function spinner() {
6464
6565# This function displays an informational message with a yellow color.
6666function msg_info() {
67+ if [ -n " $SPINNER_PID " ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi
6768 local msg=" $1 "
6869 echo -ne " ${TAB}${YW}${HOLD}${msg}${HOLD} "
6970 spinner &
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ spinner() {
9898
9999# This function displays an informational message with a yellow color.
100100msg_info() {
101+ if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi
101102 local msg="$1"
102103 echo -ne "${TAB}${YW}${HOLD}${msg}${HOLD}"
103104 spinner &
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ spinner() {
9090
9191# This function displays an informational message with a yellow color.
9292msg_info() {
93+ if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi
9394 local msg="$1"
9495 echo -ne "${TAB}${YW}${HOLD}${msg}${HOLD}"
9596 spinner &
You can’t perform that action at this time.
0 commit comments