I have a simple crontab to automatically keep my brew setup up to date, since if you update rarely the process can take ages
❯ crontab -l
MAIL=my_mail@gmail.com
@weekly bash /Users/directorytree/crontab/my_tab
The shell script I run here is very simple. I want to learn to use crontab, and these are tasks I really wish to automate:
#!/usr/bin/env zsh
brew update
brew upgrade
The problem is it seems that I simply does not run. Since every time I run either brew update or brew upgrade manually, my Mac seems to go leaps in brew versions and update a lot of packages and casks.
What can I do to ensure and test that my crontabs do in fact run?