Skip to content

Commit

Permalink
brew.sh: fix autoupdate not working correctly for bump commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Mar 14, 2024
1 parent 58b84c3 commit 2f59d0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 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,7 +853,8 @@ 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
elif [[ -z "${HOMEBREW_AUTO_UPDATING}" ]]
then
unset HOMEBREW_AUTO_UPDATE_CORE_TAP
fi

Expand Down

0 comments on commit 2f59d0a

Please sign in to comment.