Skip to content

Commit

Permalink
Merge pull request #16885 from Homebrew/autoupdate-bump-fix
Browse files Browse the repository at this point in the history
brew.sh: fix autoupdate not working correctly for bump commands
  • Loading branch information
Bo98 authored Mar 14, 2024
2 parents 7473e63 + 7921e8a commit 0927f47
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Library/Homebrew/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,8 @@ if check-array-membership "${HOMEBREW_COMMAND}" "${AUTO_UPDATE_CORE_TAP_COMMANDS
then
export HOMEBREW_AUTO_UPDATE_COMMAND="1"
export HOMEBREW_AUTO_UPDATE_CORE_TAP="1"
else
elif [[ -z "${HOMEBREW_AUTO_UPDATING}" ]]
then
unset HOMEBREW_AUTO_UPDATE_CORE_TAP
fi

Expand All @@ -852,8 +853,9 @@ if check-array-membership "${HOMEBREW_COMMAND}" "${AUTO_UPDATE_CASK_TAP_COMMANDS
then
export HOMEBREW_AUTO_UPDATE_COMMAND="1"
export HOMEBREW_AUTO_UPDATE_CASK_TAP="1"
else
unset HOMEBREW_AUTO_UPDATE_CORE_TAP
elif [[ -z "${HOMEBREW_AUTO_UPDATING}" ]]
then
unset HOMEBREW_AUTO_UPDATE_CASK_TAP
fi

# Disable Ruby options we don't need.
Expand Down

0 comments on commit 0927f47

Please sign in to comment.