brew.sh: fix nested developer command detection

This commit is contained in:
Bo Anderson 2024-07-15 02:45:27 +01:00
parent 1d6c56a435
commit bd1eb68c36
No known key found for this signature in database

View File

@ -886,6 +886,7 @@ fi
export HOMEBREW_CORE_GIT_REMOTE
# Set HOMEBREW_DEVELOPER_COMMAND if the command being run is a developer command
unset HOMEBREW_DEVELOPER_COMMAND
if [[ -f "${HOMEBREW_LIBRARY}/Homebrew/dev-cmd/${HOMEBREW_COMMAND}.sh" ]] ||
[[ -f "${HOMEBREW_LIBRARY}/Homebrew/dev-cmd/${HOMEBREW_COMMAND}.rb" ]]
then