From 3558ea0ae59eab8b30f5216695ac7d1a012718cb Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Tue, 20 Oct 2015 13:12:45 -0700 Subject: [PATCH] add LaunchAgent which periodically upgrades homebrew --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index eb15225..dbaf279 100644 --- a/README.md +++ b/README.md @@ -965,6 +965,41 @@ Run job every 5 minutes. ``` +#### Periodic Homebrew Update & Upgrade + +```xml + + + + + Label + com.example.homebrew-upgrade + ProcessType + Background + ProgramArguments + + /bin/sh + -c + /usr/local/bin/brew update && /usr/local/bin/brew upgrade && /usr/local/bin/terminal-notifier -title 'Homebrew Upgrader' -message 'Homebrew upgraded!' -appIcon http://curvve-curvvemedia.netdna-ssl.com/wp-content/uploads/2013/09/homebrew_osx_logo.png + + RunAtLoad + + StandardErrorPath + /tmp/com.example.homebrew-upgrade.stderr + StandardOutPath + /tmp/com.example.homebrew-upgrade.stdout + StartCalendarInterval + + + Hour + 8 + + + + +``` + +To leverage the notification system, this agent requires [terminal-notifier](https://github.com/julienXX/terminal-notifier), which can be installed via `brew install terminal-notifier`. ### LaunchServices