Merge pull request #1166 from MikeMcQuaid/update-hide-github-headers-missing-output

update.sh: hide GITHUB_HEADERS missing output.
This commit is contained in:
Mike McQuaid 2016-09-28 08:54:53 +01:00 committed by GitHub
commit 8d563de78a

View File

@ -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