cmd/update: avoid switching developers to stable branch

Checking for `HOMEBREW_NO_INSTALL_CLEANUP` was added in #18825, but this
breaks developers by switching them to the stable branch.

Setting `HOMEBREW_NO_UPDATE_CLEANUP` when `HOMEBREW_NO_INSTALL_CLEANUP`
is set seems like a relatively recent addition, so I don't think it
hurts to just remove it. We can add it back (correctly) if there are
users that need it.
This commit is contained in:
Carlo Cabrera 2024-12-04 01:32:52 +08:00 committed by Carlo Cabrera
parent 58e72b0a7f
commit 4029e3d7c1
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -375,7 +375,7 @@ EOS
if [[ -z "${HOMEBREW_UPDATE_TO_TAG}" ]]
then
if [[ -n "${HOMEBREW_DEVELOPER}" || -n "${HOMEBREW_DEV_CMD_RUN}" ]] && [[ -n "${HOMEBREW_NO_INSTALL_CLEANUP}" ]]
if [[ -n "${HOMEBREW_DEVELOPER}" || -n "${HOMEBREW_DEV_CMD_RUN}" ]]
then
export HOMEBREW_NO_UPDATE_CLEANUP="1"
else