Add some 'date' commands to the 'brew update' logs.

This commit is contained in:
Scott Wallace 2016-01-26 19:27:57 +00:00
parent 631a23fd28
commit 0c2ced2fcb

View file

@ -120,7 +120,13 @@ fi
# Update brew if it's older than one 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 & )
(
find /usr/local/.git -name FETCH_HEAD -mtime +0 -exec \
bash -c "echo \"--Start: $(date)\"; \
brew update; \
echo \"--End: $(date)\"" \
\; >> ~/var/log/brew-update.log 2>&1 &
)
fi
#--------------------------------------------------------------------------------