From 09e73cf7d61691ad1c1858b7ccff867bc84a46ae Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:41:06 +0100 Subject: [PATCH] Update utils.sh --- scripts/utils.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index 3204a3a..7bd29bc 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -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}" }