bin/pdfcop in origami-2.0.4 vs bin/pdfcop in origami-2.1.0

- old
+ new

@@ -140,15 +140,15 @@ abort end def quarantine(file, quarantine_folder) - digest = Digest::SHA256.file(TARGET) - ext = File.extname(TARGET) - dest_name = "#{File.basename(TARGET, ext)}_#{digest}#{ext}" - dest_path = File.join(@options[:move_dir], dest_name) + digest = Digest::SHA256.file(file) + ext = File.extname(file) + dest_name = "#{File.basename(file, ext)}_#{digest}#{ext}" + dest_path = File.join(quarantine_folder, dest_name) - FileUtils.move(TARGET, dest_path) + FileUtils.move(file, dest_path) end def check_rights(*required_rights) current_rights = SECURITY_POLICIES["POLICY_#{@options[:policy].upcase}"]