Update core.func

This commit is contained in:
CanbiZ 2025-07-04 09:32:42 +02:00
parent e2865f9e6a
commit 1f4ea27a0b

View File

@ -351,7 +351,18 @@ msg_info() {
msg_ok() {
stop_spinner
local msg="$1"
echo -e "${BFR:-} ${CM:-✔️} ${GN}${msg}${CL}"
if [[ "${VERBOSE:-no}" != "no" || "${var_os:-}" == "alpine" || ! -t 2 ]]; then
local CHECK="${TAB}✔️${TAB}"
local PREV="${SPINNER_MSG:-}"
if [[ -n "$PREV" && "$msg" == "$PREV" ]]; then
printf "\r\e[2K%s %b\n" "$CHECK" "${GN}${msg}${CL}" >&2
else
printf "%s %b\n" "$CHECK" "${GN}${msg}${CL}" >&2
fi
else
echo -e "${BFR:-} ${CM:-✔️} ${GN}${msg}${CL}"
fi
}
msg_error() {