Add some 'date' commands to the 'brew update' logs.
This commit is contained in:
parent
631a23fd28
commit
0c2ced2fcb
8
.bashrc
8
.bashrc
|
@ -120,7 +120,13 @@ fi
|
||||||
# Update brew if it's older than one day
|
# Update brew if it's older than one day
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
if [ -x /usr/local/bin/brew ]; then
|
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
|
fi
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue