From d64b34695c448ceed54c5ba052c145112a513710 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 4 Jul 2025 09:37:50 +0200 Subject: [PATCH] Update core.func --- misc/core.func | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/misc/core.func b/misc/core.func index 11914ebe..a87f3c05 100644 --- a/misc/core.func +++ b/misc/core.func @@ -326,21 +326,19 @@ msg_info() { if ! declare -p MSG_INFO_SHOWN &>/dev/null || ! declare -A MSG_INFO_SHOWN &>/dev/null; then declare -gA MSG_INFO_SHOWN=() fi - - if [[ -n "${MSG_INFO_SHOWN["$msg"]+x}" ]]; then - return - fi + [[ -n "${MSG_INFO_SHOWN["$msg"]+x}" ]] && return MSG_INFO_SHOWN["$msg"]=1 stop_spinner + SPINNER_MSG="$msg" + if [[ "${VERBOSE:-no}" != "no" || "${var_os:-}" == "alpine" || ! -t 2 ]]; then local HOURGLASS="${TAB}⏳${TAB}" - printf "\r\e[2K%s %b\n" "$HOURGLASS" "${YW}${msg}${CL}" >&2 + printf "\r\e[2K%s %b" "$HOURGLASS" "${YW}${msg}${CL}" >&2 return fi - SPINNER_MSG="$msg" color_spinner spinner & SPINNER_PID=$!