Update core.func

This commit is contained in:
CanbiZ 2025-06-30 09:10:15 +02:00
parent f925b7e894
commit bd08ef9837

View File

@ -447,9 +447,12 @@ spinner() {
}
stop_spinner() {
[[ -n "$SPINNER_PID" ]] && kill "$SPINNER_PID" 2>/dev/null && wait "$SPINNER_PID" 2>/dev/null || true
printf "\e[?25h"
if [[ -n "$SPINNER_PID" ]]; then
kill "$SPINNER_PID" 2>/dev/null
wait "$SPINNER_PID" 2>/dev/null || true
SPINNER_PID=""
fi
printf "\r\033[K\e[?25h" # clear line + show cursor
}
msg_info() {