runcscript --nocolor strips colors when it runs from the command prompt, or inside the script, when it runs from the command prompt too. It is convinient when you need to redirect the output to syslog. But if I run the same script from cron then "--nocolor" option doesn't work and my syslog is impossible to parse by log analyzers. Weird, it worked before. In fact the log of that script shows that "--nocolor" option worked before, but not anymore for already more than a month.
what if you do `env NOCOLOR=true` ?
Attach your crontab here.
Works on my boxen.