DEV Community

Discussion on: Towards a better message of the day

Collapse
 
moopet profile image
Ben Sinclair

Wait what I wrote this forever ago and didn't even notice I was using eval. Now I'm not sure why I was doing that at all. Probably to get round issues with things like printing messages that start with a dash or something

I rarely if ever deal with arrays in shell scripts - but your changes look like the right thing to do! Thanks.

The final output in mine comes down to hostname | toilet -f future | lolcat . Future is such a nice, small font compared to the "tiny" fonts or figlet/toilet's usual enormous banners :)