Prevent double spinner (#2203)

Co-authored-by: Rögl-Brunner Michel <Michel.Roegl-brunner@htl-braunau.int>
This commit is contained in:
Michel Roegl-Brunner
2025-02-10 11:14:24 +01:00
committed by GitHub
parent e989bbba29
commit 33ef8aadbe
3 changed files with 3 additions and 0 deletions

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 &