cmd/update: suppress curl warning in certain envs

Specifically the warning:
`Failed to set filetime <unixtime> on outfile: Operation not permitted`
when the user's `.curlrc`  contains `--remote-time` and the server 
returned a `Last-Modified:` header, like in case of the GitHub API.
This commit is contained in:
Viktor Szakats 2021-01-25 19:58:41 +01:00 committed by GitHub
parent a308c6da73
commit 89eecedbbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,7 @@ EOS
UPSTREAM_SHA_HTTP_CODE="$("$HOMEBREW_CURL" \
"${CURL_DISABLE_CURLRC_ARGS[@]}" \
--silent --max-time 3 \
--location --output /dev/null --write-out "%{http_code}" \
--location --no-remote-time --output /dev/null --write-out "%{http_code}" \
--dump-header "$DIR/.git/GITHUB_HEADERS" \
--user-agent "$HOMEBREW_USER_AGENT_CURL" \
--header "Accept: $GITHUB_API_ACCEPT" \