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
2 changed files with 5 additions and 5 deletions
+5
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" ]]
-5
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