Feature #4217: don't try to delete images from s3 that don't have a

source
This commit is contained in:
Jaime Melis committed 2016-02-01 15:40:38 +01:00
1 parent e35e097469
commit aecd441bce
1 file changed
+5
+5
View File
@@ -59,6 +59,11 @@ region = xpath(xml, 'MARKETPLACE/TEMPLATE/REGION')
name = File.basename(source)
if name.empty?
STDERR.puts "Empty SOURCE."
exit 1
end
s3 = S3.new(
:name => name,
:bucket => bucket,