diff options
| author | Martin Afanasjew | 2016-08-09 21:19:30 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-08-09 21:19:30 +0200 |
| commit | 159b0eea3591b5be6221931df6d4623998235878 (patch) | |
| tree | d561c15ad977f5c8fffa48573afb2ae25c731dcf /Library | |
| parent | 19920e18a129a21890d9d8bd6443cd1afd32208b (diff) | |
| download | brew-159b0eea3591b5be6221931df6d4623998235878.tar.bz2 | |
update: suppress warning about missing FETCH_HEAD
Fixes #671.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/update.sh | 2 |
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 |
