File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161log " created heaptrack report at $heaptrack_logpath "
6262log " you can inspect it using this command:"
6363echo " "
64- echo " $( tput bold ) heaptrack_print ${heaptrack_logpath} .zst | less$( tput sgr0 ) "
64+ echo " ${WHITE} heaptrack_print ${heaptrack_logpath} .zst | less${RESET} "
6565echo " "
6666log " or publish it via http and download locally to inspect with heaptrack gui version:"
6767echo " "
68- echo " $( tput bold ) cp ${heaptrack_logpath} .zst /var/www/html/tmp/$( tput sgr0 ) "
68+ echo " ${WHITE} cp ${heaptrack_logpath} .zst /var/www/html/tmp/${RESET} "
6969echo " "
7070log " then click here to download https://zillyhuhn.com/tmp/${heaptrack_logpath} .zst"
7171log " after downloading clean it up using this command:"
7272echo " "
73- echo " $( tput bold ) rm /var/www/html/tmp/${heaptrack_logpath} .zst$( tput sgr0 ) "
73+ echo " ${WHITE} rm /var/www/html/tmp/${heaptrack_logpath} .zst${RESET} "
7474echo " "
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # resets color and bold property
34export RESET=' \033[0m'
5+
6+ # keeps the color
7+ export BOLD=' \033[1m'
8+
49export RED=' \033[0;31m'
510export GREEN=' \033[0;32m'
611export YELLOW=' \033[0;33m'
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ function _log() {
3939 ts=" [$( date ' +%F %H:%M:%S' ) ]"
4040 if [ " ${LOG_TS:- } " == " 1" ]
4141 then
42- echo -ne " $ts$ msg_rich "
42+ echo -ne " ${ts}${ msg_rich}${RESET} "
4343 else
44- echo -ne " $msg_rich "
44+ echo -ne " ${ msg_rich}${RESET} "
4545 fi
4646 _log_to_file " $ts$msg_plain "
4747}
Original file line number Diff line number Diff line change 121121 log " created massif report at $massif_logpath "
122122 log " you can inspect it using this command:"
123123 echo " "
124- echo " $( tput bold ) ms_print $massif_logpath $( tput sgr0 ) "
124+ echo -e " ${BOLD} ms_print $massif_logpath ${RESET} "
125125 echo " "
126126fi
127127
You can’t perform that action at this time.
0 commit comments