update-report: use --overwrite to migrate Casks.
`--force` isn't quite what we want here as it'll just allow keg-only linkage whereas we want to ensure we overwrite anything the Cask installed.
This commit is contained in:
parent
be5484da8c
commit
ebe8b8d328
@ -266,7 +266,7 @@ class Reporter
|
||||
system HOMEBREW_BREW_FILE, "install", new_full_name
|
||||
begin
|
||||
unless Formulary.factory(new_full_name).keg_only?
|
||||
system HOMEBREW_BREW_FILE, "link", new_full_name, "--force"
|
||||
system HOMEBREW_BREW_FILE, "link", new_full_name, "--overwrite"
|
||||
end
|
||||
rescue Exception => e
|
||||
onoe e if ARGV.homebrew_developer?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user