Update utils.sh

This commit is contained in:
MacRimi 2025-02-03 22:45:07 +01:00 committed by GitHub
parent 575adba30f
commit 6b6977a2b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,12 @@ msg_info() {
SPINNER_PID=$!
}
# Display info message
msg_info2() {
local msg="$1"
echo -ne "${TAB}${YW}${HOLD}${msg}"
}
# Display warning or highlighted information message
msg_warn() {
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then