Skip to content

Instantly share code, notes, and snippets.

@thekcsam
Created November 26, 2021 03:02
Show Gist options
  • Select an option

  • Save thekcsam/9d25dd45dd861b8fe990242d2b715e62 to your computer and use it in GitHub Desktop.

Select an option

Save thekcsam/9d25dd45dd861b8fe990242d2b715e62 to your computer and use it in GitHub Desktop.
brew cronjob
#!/bin/bash
# Update brew
brew update
# Upgrade all brew packages
brew upgrade
# Remove old versions of packages
brew cleanup
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