package 'unzip' unless platform?('windows')

dirs = %w(config drivers server)
dirs.push('bin', 'log') if platform?('windows')

dirs.each do  |dir|
  directory "#{selenium_home}/#{dir}" do
    recursive true
    action :create
  end
end

package 'unzip' unless platform?('windows', 'mac_os_x')

dirs = %w(config drivers server)
dirs.push('bin', 'log') if platform?('windows')

dirs.each do  |dir|
  directory "#{selenium_home}/#{dir}" do
    recursive true
    action :create
  end
end

Install unzip only on linux
Install unzip only on linux
