diff --git a/lib/bundle/brew_installer.rb b/lib/bundle/brew_installer.rb index e7e7ea5e7..05d9598a2 100644 --- a/lib/bundle/brew_installer.rb +++ b/lib/bundle/brew_installer.rb @@ -256,6 +256,7 @@ def resolve_conflicts!(verbose:) def install!(verbose:, force:) install_args = @args.dup install_args << "--force" << "--overwrite" if force + install_args << "--skip-link" if @link == false with_args = " with #{install_args.join(" ")}" if install_args.present? puts "Installing #{@name} formula#{with_args}. It is not currently installed." if verbose unless Bundle.brew("install", "--formula", @full_name, *install_args, verbose:)