gaboshlib/gaboshlib/g_echo.bashfunc

11 lines
177 B
Bash

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