diff --git a/lib/bundle/brew_installer.rb b/lib/bundle/brew_installer.rb index 0ca789883..2d2a9b746 100644 --- a/lib/bundle/brew_installer.rb +++ b/lib/bundle/brew_installer.rb @@ -113,7 +113,7 @@ def link_change_state!(verbose: false, force: false) if unlinked_and_not_keg_only? puts "Linking #{@name} formula." if verbose link_args = "link" - link_args << "--force" if force + link_args << "--overwrite" if force Bundle.system(HOMEBREW_BREW_FILE, *link_args, @name, verbose: verbose) elsif linked_and_keg_only? puts "Unlinking #{@name} formula." if verbose