Explorar el Código

Merge pull request #2044 from sigvei/main

fix: download_doc should delete tempfile
Simon Legner hace 2 años
padre
commit
c90a82a193
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lib/tasks/docs.thor

+ 1 - 0
lib/tasks/docs.thor

@@ -343,6 +343,7 @@ class DocsCLI < Thor
       file.close
       tar = UnixUtils.gunzip(file.path)
       dir = UnixUtils.untar(tar)
+      FileUtils.rm(tar)
       FileUtils.rm_rf(target_path)
       FileUtils.mv(dir, target_path)
       FileUtils.rm(file.path)