Skip to content

Commit

Permalink
Merge pull request #1258 from MikeMcQuaid/link_force_overwrite
Browse files Browse the repository at this point in the history
brew_installer: use `brew link --overwrite` when appropriate.
  • Loading branch information
MikeMcQuaid authored Oct 10, 2023
2 parents d58b9e2 + 2d50f41 commit 73fe141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundle/brew_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73fe141

Please sign in to comment.