File tree Expand file tree Collapse file tree 4 files changed +8
-45
lines changed
Expand file tree Collapse file tree 4 files changed +8
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,38 +17,38 @@ timestamp() {
1717}
1818
1919log_hr () {
20- echo -e " ${BOLD} --------------------------------------------------${NC} " | tee -a " $LOG_DIR /hook.log"
20+ /bin/ echo -e " ${BOLD} --------------------------------------------------${NC} " | tee -a " $LOG_DIR /hook.log"
2121}
2222
2323log_broadcast () {
2424 title=" $1 "
2525 log_hr
26- echo -e " ${GREEN}${BOLD}${title} [$( timestamp) ]${NC} " | tee -a " $LOG_DIR /hook.log"
26+ /bin/ echo -e " ${GREEN}${BOLD}${title} [$( timestamp) ]${NC} " | tee -a " $LOG_DIR /hook.log"
2727 log_hr
2828}
2929
3030log_info () {
31- echo -e " ${BLUE} [INFO]${NC} $* " | tee -a " $LOG_DIR /hook.log"
31+ /bin/ echo -e " ${BLUE} [INFO]${NC} $* " | tee -a " $LOG_DIR /hook.log"
3232}
3333
3434log_error () {
35- echo -e " ${RED} [ERROR]${NC} $* " | tee -a " $LOG_DIR /hook.log" >&2
35+ /bin/ echo -e " ${RED} [ERROR]${NC} $* " | tee -a " $LOG_DIR /hook.log" >&2
3636}
3737
3838log_warn () {
39- echo -e " ${YELLOW} [WARN]${NC} $* " | tee -a " $LOG_DIR /hook.log"
39+ /bin/ echo -e " ${YELLOW} [WARN]${NC} $* " | tee -a " $LOG_DIR /hook.log"
4040}
4141
4242log_success () {
43- echo -e " ${GREEN} [SUCCESS]${NC} $* " | tee -a " $LOG_DIR /hook.log"
43+ /bin/ echo -e " ${GREEN} [SUCCESS]${NC} $* " | tee -a " $LOG_DIR /hook.log"
4444}
4545
4646log_hook () {
4747 hook=" $1 "
4848 shift
49- echo -e " ${GREEN} [$hook ]${NC} $* " | tee -a " $LOG_DIR /hook.log"
49+ /bin/ echo -e " ${GREEN} [$hook ]${NC} $* " | tee -a " $LOG_DIR /hook.log"
5050}
5151
5252log_example () {
53- echo -e " ${BOLD}${GREEN} [EXAMPLE]${NC} $* " | tee -a " $LOG_DIR /hook.log"
53+ /bin/ echo -e " ${BOLD}${GREEN} [EXAMPLE]${NC} $* " | tee -a " $LOG_DIR /hook.log"
5454}
You can’t perform that action at this time.
0 commit comments