added g_echo_note function for colored notifications

This commit is contained in:
olli 2023-01-17 09:28:16 +01:00
parent f817b43dde
commit 987d31b60d

View File

@ -0,0 +1,10 @@
#!/bin/bash
function g_echo_note {
[ -z "$1" ] && return 0
echo -en "\033[97m$(g_date_print) \033[36mNOTE:"
cat <<< "$@"
echo -en "\033[0m"
[ -z $g_alltosyslog ] && return 0
g_logger $@
}