I fixed colors on Alpine Linux.
tput is not installed on this distro by default and I don't know if it's available in general in repo.
I changed tput colors defined to standard colors. Also I had to change cat <<EOF to printf to apply this colors modification.