diff options
| author | Mike McQuaid | 2017-06-02 22:17:18 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-06-02 22:17:18 +0100 |
| commit | 5dc11c6b932e225650bac7c16f4d2d698740249d (patch) | |
| tree | 0cae9070c4654151c5cfee151233c722b31a7846 /Library | |
| parent | 0731a68cde75206682ed972beb47930afa3c434e (diff) | |
| download | brew-5dc11c6b932e225650bac7c16f4d2d698740249d.tar.bz2 | |
install: fix cask install with env filtering.
With `HOMEBREW_ENV_FILTERING` simply running `brew` is not sufficient
to find `brew cask` so the full path needs to be passed.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index cc8750cad..a0027c1a5 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -95,9 +95,8 @@ module Homebrew args << "--verbose" if ARGV.verbose? ARGV.casks.each do |c| - cmd = "brew", "cask", "install", c, *args - ohai cmd.join " " - system(*cmd) + ohai "brew cask install #{c} #{args.join " "}" + system("#{HOMEBREW_PREFIX}/bin/brew", "cask", "install", c, *args) end end |
