瀏覽代碼

Merge pull request #2044 from sigvei/main

fix: download_doc should delete tempfile
Simon Legner 2 年之前
父節點
當前提交
c90a82a193
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)