lib/rconf/support/package_installer.rb in rconf-0.8.19 vs lib/rconf/support/package_installer.rb in rconf-0.8.20

- old
+ new

@@ -85,10 +85,11 @@ return if packages.nil? BrewInstaller.check_and_install packages.each do |p| args = [ p ] args << opts if opts - installed = Command.execute('brew', 'install', *args).success? + res = Command.execute('brew', 'install', *args) + installed = res.success? && res.output !~ /Formula already installed/ Command.sudo('brew', 'link', p) if installed end end # Install Windows software