diff --git a/src/functions.sh b/src/functions.sh index 23d3885..f54d7cd 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -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()