Automatically enable external brew commands.

* Add path to external command examples to PATH.
* Only add them to PATH from inside Homebrew.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Move external commands path down near check
This commit is contained in:
Martin Kühl 2010-07-02 19:51:26 +02:00 committed by Adam Vandenberg
parent 0321acf9be
commit da7854401d

View File

@ -349,6 +349,9 @@ begin
brew_doctor brew_doctor
else else
# Add example external commands to PATH before checking.
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/examples"
# Check for an external shell command # Check for an external shell command
if system "/usr/bin/which -s brew-#{arg}" if system "/usr/bin/which -s brew-#{arg}"
# Add some Homebrew vars to the ENV # Add some Homebrew vars to the ENV