Added colored debug messages

This commit is contained in:
Yasin Kaya 2020-11-25 14:42:04 +03:00
parent 3d96698901
commit 94763c8aef

View File

@ -2,9 +2,10 @@
source configs.sh
function debug()
function debug
{
echo $(date "+%Y/%m/%d - %H:%M:%S :") "$1"
ECHO_PARAM=${2:-''}
echo -e $ECHO_PARAM ${GREEN}$(date "+%Y/%m/%d->${BLUE}%H:%M:%S") ${SET} "$1"
}
function check_network()