Merge pull request #17968 from maxim-belkin/fix-autoupdate-on-windows

This commit is contained in:
Patrick Linnane 2024-08-06 19:58:35 -07:00 committed by GitHub
commit 47b1cab7ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -294,7 +294,7 @@ auto-update() {
for repo_fetch_head in "${repo_fetch_heads[@]}"
do
if [[ ! -f "${repo_fetch_head}" ]] ||
[[ -z "$(find "${repo_fetch_head}" -type f -mtime -"${HOMEBREW_AUTO_UPDATE_SECS}"s 2>/dev/null)" ]]
[[ -z "$(find "${repo_fetch_head}" -type f -newermt "-${HOMEBREW_AUTO_UPDATE_SECS} seconds" 2>/dev/null)" ]]
then
needs_auto_update=1
break