refactor: always make templater print with color
This commit is contained in:
parent
e01eff5fd2
commit
3594d15c5c
@ -31,11 +31,7 @@ echo_rgb() {
|
||||
green="${3}"
|
||||
blue="${4}"
|
||||
|
||||
if [ -t 1 ]; then
|
||||
printf "\e[0;38;2;%s;%s;%sm%s\e[m\n" "${red}" "${green}" "${blue}" "${input}"
|
||||
else
|
||||
printf "%s\n" "${input}"
|
||||
fi
|
||||
}
|
||||
|
||||
log() {
|
||||
|
Loading…
Reference in New Issue
Block a user