Update app/services/procedure_archive_service.rb

Co-authored-by: LeSim <mail@simon.lehericey.net>
This commit is contained in:
mfo 2021-12-13 15:56:27 +01:00 committed by Martin
parent 1795084dce
commit 148be50c86

View file

@ -128,7 +128,7 @@ class ProcedureArchiveService
end
File.delete(zip_path) if File.exist?(zip_path)
puts `cd #{tmp_dir} && zip -r #{zip_path} #{zip_root_folder}`
`cd #{tmp_dir} && zip -r #{zip_path} #{zip_root_folder}`
yield(zip_path)
ensure
FileUtils.remove_entry_secure(archive_dir) if Dir.exist?(archive_dir)