refactor: always make templater print with color

This commit is contained in:
Price Hiller 2023-09-15 17:09:57 -05:00
parent e01eff5fd2
commit 3594d15c5c
No known key found for this signature in database

View File

@ -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
printf "\e[0;38;2;%s;%s;%sm%s\e[m\n" "${red}" "${green}" "${blue}" "${input}"
}
log() {