]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/osmosis/recipes/default.rb
Require postgres 9.3 on poldi and pummelzacken
[chef.git] / cookbooks / osmosis / recipes / default.rb
index 7532cd7acde2c80487e473db6106548df329245e..2c55a64aa18914561f5550eb3482dac391a4932e 100644 (file)
@@ -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