Explorar el Código

fix: download_doc deletes tempfile

The download routine in docs.thor did not delete the tarball after completion.
Sigve Indregard hace 2 años
padre
commit
28295354d0
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)