cmd/update.sh: fix race condition reporting fetch failures

This commit is contained in:
Bo Anderson 2022-07-01 17:35:34 +01:00
parent d541ab089e
commit 7390022b0e
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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}" ]]