Prevent double spinner

This commit is contained in:
Rögl-Brunner Michel 2025-02-10 09:28:22 +01:00
parent f94d727af7
commit 74d914bb5b
3 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,7 @@ function spinner() {
# This function displays an informational message with a yellow color.
function msg_info() {
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi
local msg="$1"
echo -ne "${TAB}${YW}${HOLD}${msg}${HOLD}"
spinner &

View File

@ -98,6 +98,7 @@ spinner() {
# This function displays an informational message with a yellow color.
msg_info() {
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi
local msg="$1"
echo -ne "${TAB}${YW}${HOLD}${msg}${HOLD}"
spinner &

View File

@ -90,6 +90,7 @@ spinner() {
# This function displays an informational message with a yellow color.
msg_info() {
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi
local msg="$1"
echo -ne "${TAB}${YW}${HOLD}${msg}${HOLD}"
spinner &