X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6da11d5333d3a636b7ee9861838e24ae845a3694..956ffe2008afb266d5fa00010e642e8af03c48b0:/cookbooks/osmosis/recipes/default.rb?ds=inline diff --git a/cookbooks/osmosis/recipes/default.rb b/cookbooks/osmosis/recipes/default.rb index 7532cd7ac..2c55a64aa 100644 --- a/cookbooks/osmosis/recipes/default.rb +++ b/cookbooks/osmosis/recipes/default.rb @@ -26,11 +26,11 @@ osmosis_package = "osmosis-#{node[:osmosis][:version]}.zip" osmosis_directory = "/opt/osmosis-#{node[:osmosis][:version]}" Dir.glob("/var/cache/chef/osmosis-*.zip").each do |zip| - if zip != "/var/cache/chef/#{osmosis_package}" - file zip do - action :delete - backup false - end + next if zip == "/var/cache/chef/#{osmosis_package}" + + file zip do + action :delete + backup false end end