Update app/services/procedure_archive_service.rb
Co-authored-by: LeSim <mail@simon.lehericey.net>
This commit is contained in:
parent
1795084dce
commit
148be50c86
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue