From 89eecedbbb33ee946d0077fc0a705ea45f774f4f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 25 Jan 2021 19:58:41 +0100 Subject: [PATCH] cmd/update: suppress curl warning in certain envs Specifically the warning: `Failed to set filetime 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. --- Library/Homebrew/cmd/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index bde417c994..415eac59a5 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -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" \