Skip to content

Instantly share code, notes, and snippets.

@ar1g
Forked from tjluoma/updatebrew.sh
Last active August 29, 2015 14:16
Show Gist options
  • Save ar1g/7d613bce5aa751c5d19f to your computer and use it in GitHub Desktop.
Save ar1g/7d613bce5aa751c5d19f to your computer and use it in GitHub Desktop.
#!/bin/zsh -f
NAME="$0:t:r"
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
(brew update && \
brew upgrade && \
brew doctor) 2>&1 |\
tee -a "$HOME/Library/Logs/$NAME.log"
echo "Done at: `date +%Y-%m-%d.%H:%M:%S`" >> "$HOME/Library/Logs/$NAME.log"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment