From 7390022b0e4808bfc695a66c496f5737971c6e3a Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 1 Jul 2022 17:35:34 +0100 Subject: [PATCH] cmd/update.sh: fix race condition reporting fetch failures --- 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 f70fe6d09a..0269d73edb 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -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}" ]]