added g_echo_note function for colored notifications
This commit is contained in:
parent
f817b43dde
commit
987d31b60d
10
gaboshlib/g_echo_note.bashfunc
Normal file
10
gaboshlib/g_echo_note.bashfunc
Normal 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 $@
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user