brew.sh: fix nested developer command detection
This commit is contained in:
parent
1d6c56a435
commit
bd1eb68c36
@ -886,6 +886,7 @@ fi
|
|||||||
export HOMEBREW_CORE_GIT_REMOTE
|
export HOMEBREW_CORE_GIT_REMOTE
|
||||||
|
|
||||||
# Set HOMEBREW_DEVELOPER_COMMAND if the command being run is a developer command
|
# 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" ]] ||
|
if [[ -f "${HOMEBREW_LIBRARY}/Homebrew/dev-cmd/${HOMEBREW_COMMAND}.sh" ]] ||
|
||||||
[[ -f "${HOMEBREW_LIBRARY}/Homebrew/dev-cmd/${HOMEBREW_COMMAND}.rb" ]]
|
[[ -f "${HOMEBREW_LIBRARY}/Homebrew/dev-cmd/${HOMEBREW_COMMAND}.rb" ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user