Merge pull request #9379 from reitermarkus/cask-fetch-force

Fix wrong `force` keyword.
This commit is contained in:
Markus Reiter 2020-12-02 17:49:56 +01:00 committed by GitHub
commit d0feb49a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,14 +125,10 @@ module Homebrew
else
cask = formula_or_cask
options = {
force: args.force?,
quarantine: args.quarantine?,
}.compact
quarantine = args.quarantine?
quarantine = true if quarantine.nil?
options[:quarantine] = true if options[:quarantine].nil?
download = Cask::Download.new(cask, **options)
download = Cask::Download.new(cask, quarantine: quarantine)
fetch_cask(download, args: args)
end
end