Update utils.sh

This commit is contained in:
MacRimi 2025-02-02 12:21:50 +01:00 committed by GitHub
parent 07265ae105
commit 38f452aca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,6 +62,12 @@ msg_info() {
SPINNER_PID=$!
}
# Display warning or highlighted information message
msg_warn() {
local msg="$1"
echo -e "${BFR}${TAB}${YWB}[INFO]${CL} ${YWB}${msg}${CL}"
}
# Display success message
msg_ok() {
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then