Update utils.sh

This commit is contained in:
MacRimi 2025-02-08 17:41:06 +01:00 committed by GitHub
parent 880cafea73
commit 09e73cf7d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,13 +103,17 @@ msg_info() {
# Display info2 message
msg_info2() {
local msg="$1"
echo -ne "${TAB}${BOLD}${YW}${HOLD}${msg}"
echo -e "${TAB}${BOLD}${YW}${HOLD}${msg}"
}
# Display success message
msg_success() {
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then
kill $SPINNER_PID > /dev/null
fi
printf "\e[?25h"
local msg="$1"
echo -ne "${TAB}${BOLD}${BL}${HOLD}${msg}"
echo -e "${TAB}${BOLD}${BL}${HOLD}${msg}"
}