I think its almost hilarious that something calling itself a "safe script template" doesn't even spend a couple of lines dealing with the possibility of race conditions (e.g. a locking process so that if, as is almost inevitable, my script gets put in a cronjob, it doesn't run when already running).
The four lines the script wastes on setup_colors() - something that has nothing to do with "safety" - could easily be used for a basic locking process.