Ensure Homebrew is kept up to date on a regular basis.
This commit is contained in:
parent
30148f515f
commit
cbabcbaf4b
8
.bashrc
8
.bashrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue