lib/rconf/support/package_installer.rb in rconf-0.8.13 vs lib/rconf/support/package_installer.rb in rconf-0.8.14

- old
+ new

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