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:
parent
0321acf9be
commit
da7854401d
3
bin/brew
3
bin/brew
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user