Merge pull request #13505 from Bo98/fetch-fail-race-condition

cmd/update.sh: fix race condition reporting fetch failures
This commit is contained in:
Bo Anderson 2022-07-01 20:00:21 +01:00 committed by GitHub
commit 17a7e71d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -647,7 +647,7 @@ EOS
echo "Fetching ${DIR}..."
fi
local tmp_failure_file="${HOMEBREW_REPOSITORY}/.git/TMP_FETCH_FAILURES"
local tmp_failure_file="${DIR}/.git/TMP_FETCH_FAILURES"
rm -f "${tmp_failure_file}"
if [[ -n "${HOMEBREW_UPDATE_AUTO}" ]]