Created
November 26, 2021 03:02
-
-
Save samkahchiin/9d25dd45dd861b8fe990242d2b715e62 to your computer and use it in GitHub Desktop.
brew cronjob
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update brew | |
brew update | |
# Upgrade all brew packages | |
brew upgrade | |
# Remove old versions of packages | |
brew cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH=/usr/local/bin:/usr/bin:/bin | |
0 10 * * * ~/.cron/cron.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment