aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-28 08:54:53 +0100
committerGitHub2016-09-28 08:54:53 +0100
commit8d563de78aec7f6eb73290e1c11dd115b54c4f9a (patch)
treeb10b22a11a0d63d8142549bba304aa2ea16a4955 /Library
parent7e93340073106f9f5a4bef057823210fb432c064 (diff)
parent2c50f762ce5cf84dcb1540af78a303ca36f6a941 (diff)
downloadbrew-8d563de78aec7f6eb73290e1c11dd115b54c4f9a.tar.bz2
Merge pull request #1166 from MikeMcQuaid/update-hide-github-headers-missing-output
update.sh: hide GITHUB_HEADERS missing output.
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 03c9693e8..54eca1376 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -477,7 +477,7 @@ EOS
then
# Only try to `git fetch` when the upstream tags have changed
# (so the API does not return 304: unmodified).
- GITHUB_API_ETAG="$(sed -n 's/^ETag: "\([a-f0-9]\{32\}\)".*/\1/p' ".git/GITHUB_HEADERS")"
+ GITHUB_API_ETAG="$(sed -n 's/^ETag: "\([a-f0-9]\{32\}\)".*/\1/p' ".git/GITHUB_HEADERS" 2>/dev/null)"
GITHUB_API_ACCEPT="application/vnd.github.v3+json"
GITHUB_API_ENDPOINT="tags"
else