Fix bug with 8_of_clubs

This commit is contained in:
James Barnett 2017-08-18 19:00:54 -05:00
parent 5dc209aacf
commit f0667a1785
1 changed files with 9 additions and 1 deletions

View File

@ -102,8 +102,16 @@ else
# 8 of Clubs
random_directories = Array.new(20) { rand(1..100) }
prev_dirs = []
cookbook_file File.join('home','anakin_skywalker',random_directories.join('/')) do
random_directories.each do |dir|
directory File.join('home', 'anakin_skywalker', prev_dirs.join('/'), dir.to_s) do
mode 600
end
prev_dirs << dir
end
cookbook_file File.join('home', 'anakin_skywalker', random_directories.join('/'), '8_of_clubs.png') do
source 'flags/flag_images/8 of clubs.png'
mode 644
end