Merge pull request #2720 from MikeMcQuaid/install-cask-env-filtering

install: fix cask install with env filtering.
This commit is contained in:
Mike McQuaid 2017-06-03 10:00:27 +01:00 committed by GitHub
commit 34670f9b22

View File

@ -95,9 +95,8 @@ module Homebrew
args << "--verbose" if ARGV.verbose? args << "--verbose" if ARGV.verbose?
ARGV.casks.each do |c| ARGV.casks.each do |c|
cmd = "brew", "cask", "install", c, *args ohai "brew cask install #{c} #{args.join " "}"
ohai cmd.join " " system("#{HOMEBREW_PREFIX}/bin/brew", "cask", "install", c, *args)
system(*cmd)
end end
end end