Merge pull request #10388 from MikeMcQuaid/move_auto_update_secs

Move HOMEBREW_AUTO_UPDATE_SECS default definition
This commit is contained in:
Mike McQuaid 2021-01-21 15:55:31 +00:00 committed by GitHub
commit 3acf92cdc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -178,6 +178,11 @@ update-preinstall() {
then
export HOMEBREW_AUTO_UPDATING="1"
if [[ -z "$HOMEBREW_AUTO_UPDATE_SECS" ]]
then
HOMEBREW_AUTO_UPDATE_SECS="300"
fi
# Skip auto-update if the cask/core tap has been updated in the
# last $HOMEBREW_AUTO_UPDATE_SECS.
if [[ "$HOMEBREW_COMMAND" = "cask" ]]

View File

@ -342,11 +342,6 @@ EOS
fi
fi
if [[ -z "$HOMEBREW_AUTO_UPDATE_SECS" ]]
then
HOMEBREW_AUTO_UPDATE_SECS="300"
fi
# check permissions
if [[ -e "$HOMEBREW_CELLAR" && ! -w "$HOMEBREW_CELLAR" ]]
then