From 3dddbe39fae0de3ea5fb6871ecd9c3612ae47c78 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Wed, 21 Jul 2021 03:10:08 -0400 Subject: [PATCH] Use Homebrew/brew when checking `HOMEBREW_AUTO_UPDATE_SECS` --- Library/Homebrew/brew.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index cb69767ebb..b1c88f2a03 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -183,11 +183,11 @@ update-preinstall() { HOMEBREW_AUTO_UPDATE_SECS="300" fi - # Skip auto-update if the core tap has been updated in the + # Skip auto-update if the repository has been updated in the # last $HOMEBREW_AUTO_UPDATE_SECS. - tap_fetch_head="${HOMEBREW_CORE_REPOSITORY}/.git/FETCH_HEAD" - if [[ -f "${tap_fetch_head}" && - -n "$(find "${tap_fetch_head}" -type f -mtime -"${HOMEBREW_AUTO_UPDATE_SECS}"s 2>/dev/null)" ]] + repo_fetch_head="${HOMEBREW_REPOSITORY}/.git/FETCH_HEAD" + if [[ -f "${repo_fetch_head}" && + -n "$(find "${repo_fetch_head}" -type f -mtime -"${HOMEBREW_AUTO_UPDATE_SECS}"s 2>/dev/null)" ]] then return fi