From 0c2ced2fcbb5bfcd0106b46bcf81b622c9526638 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 26 Jan 2016 19:27:57 +0000 Subject: [PATCH] Add some 'date' commands to the 'brew update' logs. --- .bashrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 31f267c..2e0c238 100644 --- a/.bashrc +++ b/.bashrc @@ -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 #--------------------------------------------------------------------------------