Update core.func
This commit is contained in:
parent
9747828a9e
commit
3db4479cd0
@ -350,13 +350,7 @@ msg_ok() {
|
|||||||
local msg="$1"
|
local msg="$1"
|
||||||
if [[ "${VERBOSE:-no}" != "no" || "${var_os:-}" == "alpine" || ! -t 2 ]]; then
|
if [[ "${VERBOSE:-no}" != "no" || "${var_os:-}" == "alpine" || ! -t 2 ]]; then
|
||||||
local CHECK="${TAB}✔️${TAB}"
|
local CHECK="${TAB}✔️${TAB}"
|
||||||
local PREV="${SPINNER_MSG:-}"
|
printf "\r\e[2K%s %b\n" "$CHECK" "${GN}${msg}${CL}" >&2
|
||||||
|
|
||||||
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
|
else
|
||||||
echo -e "${BFR:-} ${CM:-✔️} ${GN}${msg}${CL}"
|
echo -e "${BFR:-} ${CM:-✔️} ${GN}${msg}${CL}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user