Update core.func

This commit is contained in:
CanbiZ 2025-06-27 13:12:56 +02:00 committed by GitHub
parent c2c75c59a5
commit a29e9cd22f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -435,7 +435,14 @@ msg_info() {
stop_spinner
if [[ "${VERBOSE:-no}" == "no" && -t 2 ]]; then
msg_info() {
local msg="$1"
[[ -z "$msg" || -n "${MSG_INFO_SHOWN["$msg"]+x}" ]] && return
MSG_INFO_SHOWN["$msg"]=1
stop_spinner
if [[ "${VERBOSE:-no}" == "no" && "${var_os:-}" != "alpine" && -t 2 ]]; then
start_spinner "$msg"
else
printf "\r\e[2K%s %b" "$HOURGLASS" "${YW}${msg}${CL}" >&2