Update core.func

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

View File

@ -442,10 +442,10 @@ msg_info() {
stop_spinner
if [[ "${VERBOSE:-no}" == "no" && "${var_os:-}" != "alpine" && -t 2 ]]; then
start_spinner "$msg"
if [[ "${VERBOSE:-no}" != "no" || "${var_os:-}" == "alpine" || ! -t 2 ]]; then
printf "\r\e[2K%s %b\n" "$HOURGLASS" "${YW}${msg}${CL}" >&2
else
printf "\r\e[2K%s %b" "$HOURGLASS" "${YW}${msg}${CL}" >&2
start_spinner "$msg"
fi
}