unless File.exists?("/Applications/Screen Sharing.app")

  execute "create symbolic link in /Applications" do
    command "ln -s /System/Library/CoreServices/Screen\\ Sharing.app /Applications/"
    user WS_USER
  end

  ruby_block "test to see if Chrome was installed" do
    block do
      raise "Chrome install failed" unless File.exists?("/Applications/Screen Sharing.app")
    end
  end
end

unless File.exists?("/Applications/Screen Sharing.app")
  
  link "/Applications/Screen\ Sharing.app" do
    to "/System/Library/CoreServices/Screen\ Sharing.app"
  end

  ruby_block "test to see if Screen Sharing was installed" do
    block do
      raise "Screen Sharing install failed" unless File.exists?("/Applications/Screen Sharing.app")
    end
  end
end

Fix error message and use chef's built-in link command
Fix error message and use chef's built-in link command

Error message on screensharing app failure shouldn't say that Chrome failed to install ;)
Also the failure message references chrome instead
