Ensure Homebrew is kept up to date on a regular basis.

This commit is contained in:
Scott Wallace 2016-01-26 15:39:41 +00:00
parent 30148f515f
commit cbabcbaf4b

View file

@ -114,4 +114,12 @@ if [ -z "${SSH_AUTH_SOCK}" -a -s "${PS1}" ]; then
fi
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------
# Update brew once a day
#--------------------------------------------------------------------------------
if [ -x /usr/local/bin/brew ]; then
find /usr/local/.git -name FETCH_HEAD -mtime +0 -exec brew update \; >> ~/var/log/brew-update.log 2>&1 &
fi
#--------------------------------------------------------------------------------
[ -f ~/.bashrc_local ] && source ~/.bashrc_local