aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-08-09 21:19:30 +0200
committerMartin Afanasjew2016-08-09 21:19:30 +0200
commit159b0eea3591b5be6221931df6d4623998235878 (patch)
treed561c15ad977f5c8fffa48573afb2ae25c731dcf /Library
parent19920e18a129a21890d9d8bd6443cd1afd32208b (diff)
downloadbrew-159b0eea3591b5be6221931df6d4623998235878.tar.bz2
update: suppress warning about missing FETCH_HEAD
Fixes #671.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index 98c497082..4121078e1 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -387,7 +387,7 @@ EOS
if [[ -n "$HOMEBREW_UPDATE_PREINSTALL" ]]
then
# Skip taps checked/fetched recently
- [[ -n "$(find "$DIR/.git/FETCH_HEAD" -type f -mmin -1)" ]] && exit
+ [[ -n "$(find "$DIR/.git/FETCH_HEAD" -type f -mmin -1 2>/dev/null)" ]] && exit
# Skip taps without formulae.
FORMULAE="$(find "$DIR" -maxdepth 1 \( -name "*.rb" -or -name Formula -or -name HomebrewFormula \) -print -quit)"
[[ -z "$FORMULAE" ]] && exit