diff --git a/lib/octopress-deploy/s3.rb b/lib/octopress-deploy/s3.rb index ad7e605..fa36347 100644 --- a/lib/octopress-deploy/s3.rb +++ b/lib/octopress-deploy/s3.rb @@ -279,10 +279,12 @@ def self.default_config(options={}) protected def write_file? file + return false unless @incremental + file_digest = Digest::MD5.file(file).hexdigest o = s3_object file s3sum = o.etag.tr('"','') if o.exists? - @incremental == false || s3sum.to_s != file_digest + s3sum.to_s != file_digest end def s3_object file